avoid popups for some non-serious warnings

This commit is contained in:
Damien Elmes 2019-04-10 12:44:01 +10:00
parent 478ee66d0e
commit df4aad50e1
2 changed files with 2 additions and 2 deletions

View File

@ -292,7 +292,7 @@ close the profile or restart Anki."""))
if getattr(w, "silentlyClose", None):
w.close()
else:
showWarning("Window should have been closed: {}".format(w))
print("Window should have been closed: {}".format(w))
def unloadProfileAndExit(self):
self.unloadProfile(self.cleanupAndExit)

View File

@ -75,7 +75,7 @@ class AnkiWebPage(QWebEnginePage):
# catch buggy <a href='#' onclick='func()'> links
from aqt import mw
if url.matches(QUrl(mw.serverURL()), QUrl.RemoveFragment):
sys.stderr.write("onclick handler needs to return false\n")
print("onclick handler needs to return false")
return False
# load all other links in browser
openLink(url)