mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
quieten local port message for now
the race condition that is causing this still needs to be investigated
This commit is contained in:
parent
ce4d18aded
commit
7b93e9855e
1 changed files with 2 additions and 3 deletions
|
@ -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())
|
||||||
|
|
Loading…
Reference in a new issue