quieten local port message for now

the race condition that is causing this still needs to be investigated
This commit is contained in:
Damien Elmes 2019-06-27 09:49:05 +10:00
parent ce4d18aded
commit 7b93e9855e

View file

@ -6,7 +6,7 @@ import sys
import math import math
from anki.hooks import runHook from anki.hooks import runHook
from aqt.qt import * from aqt.qt import *
from aqt.utils import openLink, tooltip from aqt.utils import openLink
from anki.utils import isMac, isWin, isLin from anki.utils import isMac, isWin, isLin
from anki.lang import _ from anki.lang import _
@ -378,9 +378,8 @@ body {{ zoom: {}; background: {}; {} }}
def _onHeight(self, qvar): def _onHeight(self, qvar):
if qvar is None: if qvar is None:
tooltip(_("Error connecting to local port. Retrying..."))
from aqt import mw from aqt import mw
mw.progress.timer(2000, mw.reset, False) mw.progress.timer(1000, mw.reset, False)
return return
height = math.ceil(qvar*self.zoomFactor()) height = math.ceil(qvar*self.zoomFactor())