mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 16:26:40 -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.tagList.setEnabled(True)
|
||||||
self.dialog.menubar.setEnabled(True)
|
self.dialog.menubar.setEnabled(True)
|
||||||
self.dialog.cardInfoGroup.setEnabled(True)
|
self.dialog.cardInfoGroup.setEnabled(True)
|
||||||
|
self.dialog.toolBar.setEnabled(True)
|
||||||
|
|
||||||
def onFactInvalid(self, fact):
|
def onFactInvalid(self, fact):
|
||||||
self.factValid = False
|
self.factValid = False
|
||||||
|
@ -743,6 +744,7 @@ class EditDeck(QMainWindow):
|
||||||
self.dialog.tagList.setEnabled(False)
|
self.dialog.tagList.setEnabled(False)
|
||||||
self.dialog.menubar.setEnabled(False)
|
self.dialog.menubar.setEnabled(False)
|
||||||
self.dialog.cardInfoGroup.setEnabled(False)
|
self.dialog.cardInfoGroup.setEnabled(False)
|
||||||
|
self.dialog.toolBar.setEnabled(False)
|
||||||
|
|
||||||
def rowChanged(self, current, previous):
|
def rowChanged(self, current, previous):
|
||||||
self.currentRow = current
|
self.currentRow = current
|
||||||
|
|
Loading…
Reference in a new issue