mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
if check db passes, show in tooltip
This commit is contained in:
parent
8e3093005e
commit
2253b879de
1 changed files with 5 additions and 2 deletions
|
@ -887,9 +887,12 @@ Your edits have left some cards empty. Do you want to delete them?"""))
|
||||||
def onCheckDB(self):
|
def onCheckDB(self):
|
||||||
"True if no problems"
|
"True if no problems"
|
||||||
self.progress.start(immediate=True)
|
self.progress.start(immediate=True)
|
||||||
ret = self.col.fixIntegrity()
|
ret, ok = self.col.fixIntegrity()
|
||||||
self.progress.finish()
|
self.progress.finish()
|
||||||
showText(ret)
|
if not ok:
|
||||||
|
showText(ret)
|
||||||
|
else:
|
||||||
|
tooltip(ret)
|
||||||
self.reset()
|
self.reset()
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue