Merge pull request #328 from lovac42/clearUndoOnSchedConvert

clears undo before changing schedulers
This commit is contained in:
Damien Elmes 2019-08-31 11:38:07 +10:00 committed by GitHub
commit 8b78d326f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,6 +110,7 @@ class _Collection:
raise Exception("Unsupported scheduler version") raise Exception("Unsupported scheduler version")
self.modSchema(check=True) self.modSchema(check=True)
self.clearUndo()
from anki.schedv2 import Scheduler from anki.schedv2 import Scheduler
v2Sched = Scheduler(self) v2Sched = Scheduler(self)