From b5cbfe3bbb4d02546c6c1ad3c218dfc77471f8c8 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 21 Jul 2020 11:26:41 +1000 Subject: [PATCH] full sync terminates media sync; start it again afterwards https://forums.ankiweb.net/t/media-files-not-downloaded-in-first-full-sync-v2-1-28/1198/3 --- qt/aqt/sync.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qt/aqt/sync.py b/qt/aqt/sync.py index 4fab3a348..82ef4cf1b 100644 --- a/qt/aqt/sync.py +++ b/qt/aqt/sync.py @@ -191,6 +191,7 @@ def full_download(mw: aqt.main.AnkiQt, on_done: Callable[[], None]) -> None: fut.result() except Exception as err: handle_sync_error(mw, err) + mw.media_syncer.start() return on_done() mw.taskman.with_progress( @@ -219,6 +220,7 @@ def full_upload(mw: aqt.main.AnkiQt, on_done: Callable[[], None]) -> None: except Exception as err: handle_sync_error(mw, err) return on_done() + mw.media_syncer.start() return on_done() mw.taskman.with_progress(