mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02: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 = (
|
||||
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:
|
||||
|
|
Loading…
Reference in a new issue