mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Fix Anki closing before 'clock is off' message appears
Also fix it showing HTML code instead of formatted text
This commit is contained in:
parent
3afb77ff41
commit
2241d2fd9d
1 changed files with 6 additions and 2 deletions
|
@ -31,8 +31,12 @@ def check_for_update() -> None:
|
||||||
warn = (
|
warn = (
|
||||||
tr.qt_misc_in_order_to_ensure_your_collection(val="%s") % diff_text
|
tr.qt_misc_in_order_to_ensure_your_collection(val="%s") % diff_text
|
||||||
)
|
)
|
||||||
show_warning(warn)
|
show_warning(
|
||||||
mw.app.closeAllWindows()
|
warn,
|
||||||
|
parent=mw,
|
||||||
|
textFormat=Qt.TextFormat.RichText,
|
||||||
|
callback=mw.app.closeAllWindows,
|
||||||
|
)
|
||||||
return
|
return
|
||||||
# should we show a message?
|
# should we show a message?
|
||||||
if msg := resp.message:
|
if msg := resp.message:
|
||||||
|
|
Loading…
Reference in a new issue