mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
skip startup sync when restoring from backup
This commit is contained in:
parent
a9c9452271
commit
553a908839
1 changed files with 6 additions and 1 deletions
|
@ -229,6 +229,11 @@ Are you sure?""")):
|
||||||
self.activateWindow()
|
self.activateWindow()
|
||||||
self.raise_()
|
self.raise_()
|
||||||
# maybe sync (will load DB)
|
# maybe sync (will load DB)
|
||||||
|
if self.pendingImport and os.path.basename(
|
||||||
|
self.pendingImport).startswith("backup-"):
|
||||||
|
# skip sync when importing a backup
|
||||||
|
self.loadCollection()
|
||||||
|
else:
|
||||||
self.onSync(auto=True)
|
self.onSync(auto=True)
|
||||||
# import pending?
|
# import pending?
|
||||||
if self.pendingImport:
|
if self.pendingImport:
|
||||||
|
|
Loading…
Reference in a new issue