From 2241d2fd9d5a5e1b43e0500fa24168f56fc7b8ae Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 8 Nov 2023 12:01:31 +1000 Subject: [PATCH] Fix Anki closing before 'clock is off' message appears Also fix it showing HTML code instead of formatted text --- qt/aqt/update.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/qt/aqt/update.py b/qt/aqt/update.py index 212ddf93d..434eeecc9 100644 --- a/qt/aqt/update.py +++ b/qt/aqt/update.py @@ -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: