diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py index f39f74cc6..116443266 100755 --- a/ankiqt/ui/main.py +++ b/ankiqt/ui/main.py @@ -2233,7 +2233,6 @@ it to your friends. self.connect(m.actionRepeatAudio, s, self.onRepeatAudio) self.connect(m.actionUndo, s, self.onUndo) self.connect(m.actionRedo, s, self.onRedo) - self.connect(m.actionCheckDatabaseIntegrity, s, self.onQuickCheckDB) self.connect(m.actionFullDatabaseCheck, s, self.onCheckDB) self.connect(m.actionOptimizeDatabase, s, self.onOptimizeDB) self.connect(m.actionCheckMediaDatabase, s, self.onCheckMediaDB) @@ -2620,16 +2619,13 @@ it to your friends. # Advanced features ########################################################################## - def onQuickCheckDB(self): - self.onCheckDB(full=False) - - def onCheckDB(self, full=True): + def onCheckDB(self): "True if no problems" if self.errorOccurred: ui.utils.showWarning(_( "Please restart Anki before checking the DB.")) return - if full and not ui.utils.askUser(_("""\ + if not ui.utils.askUser(_("""\ This operation will find and fix some common problems.

On the next sync, all cards will be sent to the server.
@@ -2638,7 +2634,7 @@ Any changes on the server since your last sync will be lost.
This operation is not undoable.
Proceed?""")): return - ret = self.deck.fixIntegrity(quick=not full) + ret = self.deck.fixIntegrity() if ret == "ok": ret = True else: diff --git a/designer/main.ui b/designer/main.ui index 7f599d16f..a386885d7 100644 --- a/designer/main.ui +++ b/designer/main.ui @@ -2713,7 +2713,7 @@ 0 0 557 - 23 + 21 @@ -2785,7 +2785,6 @@ Ad&vanced - @@ -3228,18 +3227,6 @@ Save this deck, giving it a new name - - - - :/icons/sqlitebrowser.png:/icons/sqlitebrowser.png - - - &Quick Database Check - - - Check the database for errors - - @@ -3440,8 +3427,12 @@ + + + :/icons/sqlitebrowser.png:/icons/sqlitebrowser.png + - &Full Database Check... + Check Database...