mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
make sure we autosync on collection close
This commit is contained in:
parent
2aca212973
commit
6148a28bfb
2 changed files with 2 additions and 0 deletions
|
@ -222,6 +222,7 @@ Are you sure?"""):
|
||||||
self.col.close()
|
self.col.close()
|
||||||
self.col = None
|
self.col = None
|
||||||
self.backup()
|
self.backup()
|
||||||
|
self.onSync(auto=True, reload=False)
|
||||||
|
|
||||||
# Backup and auto-optimize
|
# Backup and auto-optimize
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
|
|
@ -33,6 +33,7 @@ profileConf = dict(
|
||||||
numBackups=30,
|
numBackups=30,
|
||||||
lastOptimize=intTime(),
|
lastOptimize=intTime(),
|
||||||
lang="en",
|
lang="en",
|
||||||
|
disabledAddons=[],
|
||||||
|
|
||||||
# editing
|
# editing
|
||||||
fullSearch=False,
|
fullSearch=False,
|
||||||
|
|
Loading…
Reference in a new issue