skip startup sync when restoring from backup

This commit is contained in:
Damien Elmes 2013-10-22 14:57:56 +09:00
parent a9c9452271
commit 553a908839

View file

@ -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: