From cf5f716037f39e981765b2c3c06c23f003e44f64 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 9 Jan 2024 14:09:24 +1000 Subject: [PATCH] Fix update suppression The check got lost in the recent refactor. https://forums.ankiweb.net/t/bug-report-anki-23-10-1-linux-flatpak-ignore-this-update-does-not-work/39408 --- qt/aqt/update.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qt/aqt/update.py b/qt/aqt/update.py index 434eeecc9..1b60ded48 100644 --- a/qt/aqt/update.py +++ b/qt/aqt/update.py @@ -44,7 +44,8 @@ def check_for_update() -> None: mw.pm.meta["lastMsg"] = resp.last_message_id # has Anki been updated? if ver := resp.new_version: - prompt_to_update(mw, ver) + if mw.pm.meta.get("suppressUpdate", None) != ver: + prompt_to_update(mw, ver) def on_fail(exc: Exception) -> None: print(f"update check failed: {exc}")