mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Fix scheduler change not reflected after normal sync
This commit is contained in:
parent
46746e3e34
commit
89c4441837
1 changed files with 2 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue