Skip to content

Commit

Permalink
chore: Fix Anki 23.12 incompatibility (#830)
Browse files Browse the repository at this point in the history
fix: Don't start background thread from background thread

Co-authored-by: Heitor Carvalho <[email protected]>
  • Loading branch information
RisingOrange and Heitor Carvalho authored Dec 12, 2023
1 parent ed48cfe commit d7aa58e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ankihub/gui/deck_updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d7aa58e

Please sign in to comment.