mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -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:
|
def on_future_done(fut: Future) -> None:
|
||||||
mw.col.db.begin()
|
mw.col.db.begin()
|
||||||
|
# scheduler version may have changed
|
||||||
|
mw.col._load_scheduler()
|
||||||
timer.stop()
|
timer.stop()
|
||||||
try:
|
try:
|
||||||
out: SyncOutput = fut.result()
|
out: SyncOutput = fut.result()
|
||||||
|
|
Loading…
Reference in a new issue