mirror of
https://github.com/ankitects/anki.git
synced 2025-11-07 13:17:12 -05:00
display warning when profile corrupted
This commit is contained in:
parent
eef0b92374
commit
3126611ecf
1 changed files with 5 additions and 0 deletions
|
|
@ -162,6 +162,11 @@ a flash drive.""" % self.base)
|
||||||
try:
|
try:
|
||||||
self.profile = self._unpickle(data)
|
self.profile = self._unpickle(data)
|
||||||
except:
|
except:
|
||||||
|
QMessageBox.warning(
|
||||||
|
None, _("Profile Corrupt"), _("""\
|
||||||
|
Anki could not read your profile data. Window sizes and your sync login \
|
||||||
|
details have been forgotten."""))
|
||||||
|
|
||||||
print("resetting corrupt profile")
|
print("resetting corrupt profile")
|
||||||
self.profile = profileConf.copy()
|
self.profile = profileConf.copy()
|
||||||
self.save()
|
self.save()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue