mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04: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
bf06020855
commit
cf5f716037
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
|
mw.pm.meta["lastMsg"] = resp.last_message_id
|
||||||
# has Anki been updated?
|
# has Anki been updated?
|
||||||
if ver := resp.new_version:
|
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:
|
def on_fail(exc: Exception) -> None:
|
||||||
print(f"update check failed: {exc}")
|
print(f"update check failed: {exc}")
|
||||||
|
|
Loading…
Reference in a new issue