mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12: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
|
corrupt = True
|
||||||
finally:
|
finally:
|
||||||
self.col = None
|
self.col = None
|
||||||
|
self.progress.finish()
|
||||||
if corrupt:
|
if corrupt:
|
||||||
showWarning(
|
showWarning(
|
||||||
_(
|
_(
|
||||||
|
@ -527,8 +528,6 @@ from the profile screen."
|
||||||
if not corrupt and not self.restoringBackup:
|
if not corrupt and not self.restoringBackup:
|
||||||
self.backup()
|
self.backup()
|
||||||
|
|
||||||
self.progress.finish()
|
|
||||||
|
|
||||||
# Backup and auto-optimize
|
# Backup and auto-optimize
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue