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
This commit is contained in:
Damien Elmes 2020-07-21 11:26:41 +10:00
parent 15f13145ea
commit b5cbfe3bbb

View File

@ -191,6 +191,7 @@ def full_download(mw: aqt.main.AnkiQt, on_done: Callable[[], None]) -> None:
fut.result() fut.result()
except Exception as err: except Exception as err:
handle_sync_error(mw, err) handle_sync_error(mw, err)
mw.media_syncer.start()
return on_done() return on_done()
mw.taskman.with_progress( mw.taskman.with_progress(
@ -219,6 +220,7 @@ def full_upload(mw: aqt.main.AnkiQt, on_done: Callable[[], None]) -> None:
except Exception as err: except Exception as err:
handle_sync_error(mw, err) handle_sync_error(mw, err)
return on_done() return on_done()
mw.media_syncer.start()
return on_done() return on_done()
mw.taskman.with_progress( mw.taskman.with_progress(