From d7aa58e6eaa50ab994284a42e8e99cea8fca3dcc Mon Sep 17 00:00:00 2001 From: Jakub Fidler <31575114+RisingOrange@users.noreply.github.com> Date: Tue, 12 Dec 2023 19:41:48 +0100 Subject: [PATCH] chore: Fix Anki 23.12 incompatibility (#830) fix: Don't start background thread from background thread Co-authored-by: Heitor Carvalho --- ankihub/gui/deck_updater.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ankihub/gui/deck_updater.py b/ankihub/gui/deck_updater.py index c3fe7bde7..f099377d2 100644 --- a/ankihub/gui/deck_updater.py +++ b/ankihub/gui/deck_updater.py @@ -49,7 +49,7 @@ def update_decks_and_media( # The media sync should be started after the deck updates are imported, # because the import can add new media references to notes. if start_media_sync: - media_sync.start_media_download() + aqt.mw.taskman.run_on_main(media_sync.start_media_download) LOGGER.info("Finished updating decks") return self._import_results