Fix scheduler change not reflected after normal sync

This commit is contained in:
Damien Elmes 2022-08-24 18:37:58 +10:00
parent 46746e3e34
commit 89c4441837

View file

@ -95,6 +95,8 @@ def sync_collection(mw: aqt.main.AnkiQt, on_done: Callable[[], None]) -> None:
def on_future_done(fut: Future) -> None:
mw.col.db.begin()
# scheduler version may have changed
mw.col._load_scheduler()
timer.stop()
try:
out: SyncOutput = fut.result()