mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 00:36:38 -04:00
disable rather than hide drop down in clayout cloze case
This commit is contained in:
parent
ba16b8714b
commit
75f58b86d6
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ class CardLayout(QDialog):
|
||||||
combo.clear()
|
combo.clear()
|
||||||
combo.addItems(self._templateNameIncludingOrdinal(t) for t in self.model['tmpls'])
|
combo.addItems(self._templateNameIncludingOrdinal(t) for t in self.model['tmpls'])
|
||||||
combo.setCurrentIndex(self.ord)
|
combo.setCurrentIndex(self.ord)
|
||||||
combo.setVisible(not self._isCloze())
|
combo.setEnabled(not self._isCloze())
|
||||||
self.redrawing = False
|
self.redrawing = False
|
||||||
|
|
||||||
def _templateNameIncludingOrdinal(self, tmpl):
|
def _templateNameIncludingOrdinal(self, tmpl):
|
||||||
|
|
Loading…
Reference in a new issue