mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 16:26:40 -04:00
after an undo, disable if empty
This commit is contained in:
parent
1c7cf73c5d
commit
5a5259971a
2 changed files with 3 additions and 2 deletions
|
@ -405,8 +405,8 @@ class Browser(QMainWindow):
|
|||
('question', _("Question")),
|
||||
('answer', _("Answer")),
|
||||
('template', _("Card")),
|
||||
('cardGroup', _("Card Group")),
|
||||
('factGroup', _("Fact Group")),
|
||||
('cardGroup', _("C.Group")),
|
||||
('factGroup', _("I.Group")),
|
||||
('factFld', _("Sort Field")),
|
||||
('factCrt', _("Created")),
|
||||
('factMod', _("Edited")),
|
||||
|
|
|
@ -660,6 +660,7 @@ Debug info:\n%s""") % traceback.format_exc(), help="DeckErrors")
|
|||
def onUndo(self):
|
||||
self.deck.undo()
|
||||
self.reset()
|
||||
self.maybeEnableUndo()
|
||||
|
||||
def maybeEnableUndo(self):
|
||||
if self.deck and self.deck.undoName():
|
||||
|
|
Loading…
Reference in a new issue