mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 08:22:24 -04:00
disable toolbar when fact invalid
This commit is contained in:
parent
c36c6ae3c5
commit
85750a3d20
1 changed files with 2 additions and 0 deletions
|
@ -734,6 +734,7 @@ class EditDeck(QMainWindow):
|
|||
self.dialog.tagList.setEnabled(True)
|
||||
self.dialog.menubar.setEnabled(True)
|
||||
self.dialog.cardInfoGroup.setEnabled(True)
|
||||
self.dialog.toolBar.setEnabled(True)
|
||||
|
||||
def onFactInvalid(self, fact):
|
||||
self.factValid = False
|
||||
|
@ -743,6 +744,7 @@ class EditDeck(QMainWindow):
|
|||
self.dialog.tagList.setEnabled(False)
|
||||
self.dialog.menubar.setEnabled(False)
|
||||
self.dialog.cardInfoGroup.setEnabled(False)
|
||||
self.dialog.toolBar.setEnabled(False)
|
||||
|
||||
def rowChanged(self, current, previous):
|
||||
self.currentRow = current
|
||||
|
|
Loading…
Reference in a new issue