mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
update add-ons even if they're disabled
If a user enables an old add-on and restarts immediately, it won't have had a chance to update, and may raise errors that could have been prevented if the user was running the latest version.
This commit is contained in:
parent
6fe6a9e597
commit
5d9661cee5
1 changed files with 3 additions and 3 deletions
|
@ -248,10 +248,10 @@ and have been disabled: %(found)s"
|
||||||
addon.enabled = should_enable
|
addon.enabled = should_enable
|
||||||
self.write_addon_meta(addon)
|
self.write_addon_meta(addon)
|
||||||
|
|
||||||
def enabled_ankiweb_addons(self) -> List[int]:
|
def ankiweb_addons(self) -> List[int]:
|
||||||
ids = []
|
ids = []
|
||||||
for meta in self.all_addon_meta():
|
for meta in self.all_addon_meta():
|
||||||
if meta.ankiweb_id() is not None and meta.enabled:
|
if meta.ankiweb_id() is not None:
|
||||||
ids.append(meta.ankiweb_id())
|
ids.append(meta.ankiweb_id())
|
||||||
return ids
|
return ids
|
||||||
|
|
||||||
|
@ -1041,7 +1041,7 @@ def check_for_updates(
|
||||||
client = HttpClient()
|
client = HttpClient()
|
||||||
|
|
||||||
def check():
|
def check():
|
||||||
return fetch_update_info(client, mgr.enabled_ankiweb_addons())
|
return fetch_update_info(client, mgr.ankiweb_addons())
|
||||||
|
|
||||||
def update_info_received(future: Future):
|
def update_info_received(future: Future):
|
||||||
# if syncing/in profile screen, defer message delivery
|
# if syncing/in profile screen, defer message delivery
|
||||||
|
|
Loading…
Reference in a new issue