Fix Anki closing before 'clock is off' message appears

Also fix it showing HTML code instead of formatted text
This commit is contained in:
Damien Elmes 2023-11-08 12:01:31 +10:00
parent 3afb77ff41
commit 2241d2fd9d

View File

@ -31,8 +31,12 @@ def check_for_update() -> None:
warn = (
tr.qt_misc_in_order_to_ensure_your_collection(val="%s") % diff_text
)
show_warning(warn)
mw.app.closeAllWindows()
show_warning(
warn,
parent=mw,
textFormat=Qt.TextFormat.RichText,
callback=mw.app.closeAllWindows,
)
return
# should we show a message?
if msg := resp.message: