mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
hide status if deck integrity bad
This commit is contained in:
parent
e50ccf22e5
commit
bebac30811
1 changed files with 1 additions and 0 deletions
|
@ -1644,6 +1644,7 @@ Return new path, relative to media dir."""
|
|||
self.startProgress(11)
|
||||
self.updateProgress(_("Checking integrity..."))
|
||||
if self.s.scalar("pragma integrity_check") != "ok":
|
||||
self.finishProgress()
|
||||
return _("Database file damaged. Restore from backup.")
|
||||
# ensure correct views and indexes are available
|
||||
self.updateProgress()
|
||||
|
|
Loading…
Reference in a new issue