mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02: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,7 +229,12 @@ Are you sure?""")):
|
|||
self.activateWindow()
|
||||
self.raise_()
|
||||
# maybe sync (will load DB)
|
||||
self.onSync(auto=True)
|
||||
if self.pendingImport and os.path.basename(
|
||||
self.pendingImport).startswith("backup-"):
|
||||
# skip sync when importing a backup
|
||||
self.loadCollection()
|
||||
else:
|
||||
self.onSync(auto=True)
|
||||
# import pending?
|
||||
if self.pendingImport:
|
||||
if self.pm.profile['key']:
|
||||
|
|
Loading…
Reference in a new issue