mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
make sure progress stops when collection corrupt message shown
This commit is contained in:
parent
eff1b39e9f
commit
8f7ef6ed2c
1 changed files with 1 additions and 2 deletions
|
@ -514,6 +514,7 @@ close the profile or restart Anki."""
|
|||
corrupt = True
|
||||
finally:
|
||||
self.col = None
|
||||
self.progress.finish()
|
||||
if corrupt:
|
||||
showWarning(
|
||||
_(
|
||||
|
@ -527,8 +528,6 @@ from the profile screen."
|
|||
if not corrupt and not self.restoringBackup:
|
||||
self.backup()
|
||||
|
||||
self.progress.finish()
|
||||
|
||||
# Backup and auto-optimize
|
||||
##########################################################################
|
||||
|
||||
|
|
Loading…
Reference in a new issue