mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 22:13:58 -05:00
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
This commit is contained in:
parent
6709e022fc
commit
eb45f8a76c
1 changed files with 2 additions and 1 deletions
|
|
@ -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}")
|
||||
|
|
|
|||
Loading…
Reference in a new issue