From 7b93e9855ef378b1ab75c479d9e47f57f2bb4689 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 27 Jun 2019 09:49:05 +1000 Subject: [PATCH] quieten local port message for now the race condition that is causing this still needs to be investigated --- aqt/webview.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/aqt/webview.py b/aqt/webview.py index f6b60c860..ca3b2976e 100644 --- a/aqt/webview.py +++ b/aqt/webview.py @@ -6,7 +6,7 @@ import sys import math from anki.hooks import runHook from aqt.qt import * -from aqt.utils import openLink, tooltip +from aqt.utils import openLink from anki.utils import isMac, isWin, isLin from anki.lang import _ @@ -378,9 +378,8 @@ body {{ zoom: {}; background: {}; {} }} def _onHeight(self, qvar): if qvar is None: - tooltip(_("Error connecting to local port. Retrying...")) from aqt import mw - mw.progress.timer(2000, mw.reset, False) + mw.progress.timer(1000, mw.reset, False) return height = math.ceil(qvar*self.zoomFactor())