make sure progress stops when collection corrupt message shown

This commit is contained in:
Damien Elmes 2020-04-09 14:19:20 +10:00
parent eff1b39e9f
commit 8f7ef6ed2c

View file

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