mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
remove 'show only current' option again
This commit is contained in:
parent
d6441cf520
commit
7f83f471e2
4 changed files with 1 additions and 16 deletions
|
@ -65,7 +65,6 @@ class Config(dict):
|
|||
'showTimer': True,
|
||||
'showSuspendedCards': True,
|
||||
'simpleToolbar': True,
|
||||
'editCurrentOnly': True,
|
||||
'scrollToAnswer': True,
|
||||
}
|
||||
for (k,v) in fields.items():
|
||||
|
|
|
@ -264,12 +264,8 @@ class EditDeck(QDialog):
|
|||
|
||||
def selectLastCard(self):
|
||||
"Show the row corresponding to the current card."
|
||||
if self.parent.config['editCurrentOnly']:
|
||||
if self.parent.currentCard:
|
||||
self.dialog.filterEdit.setText("<current>")
|
||||
self.dialog.filterEdit.selectAll()
|
||||
self.updateSearch()
|
||||
if not self.parent.config['editCurrentOnly'] and self.parent.currentCard:
|
||||
if self.parent.currentCard:
|
||||
currentCardIndex = self.findCardInDeckModel(
|
||||
self.model, self.parent.currentCard )
|
||||
if currentCardIndex >= 0:
|
||||
|
|
|
@ -169,7 +169,6 @@ class Preferences(QDialog):
|
|||
self.dialog.showTray.setChecked(self.config['showTrayIcon'])
|
||||
self.dialog.showTimer.setChecked(self.config['showTimer'])
|
||||
self.dialog.simpleToolbar.setChecked(self.config['simpleToolbar'])
|
||||
self.dialog.editCurrentOnly.setChecked(self.config['editCurrentOnly'])
|
||||
self.dialog.scrollToAnswer.setChecked(self.config['scrollToAnswer'])
|
||||
self.dialog.toolbarIconSize.setText(str(self.config['iconSize']))
|
||||
|
||||
|
@ -185,7 +184,6 @@ class Preferences(QDialog):
|
|||
self.config['showTimer'] = self.dialog.showTimer.isChecked()
|
||||
self.config['suppressEstimates'] = self.dialog.suppressEstimates.isChecked()
|
||||
self.config['simpleToolbar'] = self.dialog.simpleToolbar.isChecked()
|
||||
self.config['editCurrentOnly'] = self.dialog.editCurrentOnly.isChecked()
|
||||
self.config['scrollToAnswer'] = self.dialog.scrollToAnswer.isChecked()
|
||||
i = 32
|
||||
try:
|
||||
|
|
|
@ -435,13 +435,6 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="9" column="0" >
|
||||
<widget class="QCheckBox" name="editCurrentOnly" >
|
||||
<property name="text" >
|
||||
<string>Show only current card in editor</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="10" column="0" >
|
||||
<widget class="QCheckBox" name="scrollToAnswer" >
|
||||
<property name="text" >
|
||||
<string>Scroll down to the answer when showing answer</string>
|
||||
|
@ -530,7 +523,6 @@
|
|||
<tabstop>showToolbar</tabstop>
|
||||
<tabstop>tallButtons</tabstop>
|
||||
<tabstop>showTray</tabstop>
|
||||
<tabstop>editCurrentOnly</tabstop>
|
||||
<tabstop>scrollToAnswer</tabstop>
|
||||
<tabstop>toolbarIconSize</tabstop>
|
||||
<tabstop>buttonBox</tabstop>
|
||||
|
|
Loading…
Reference in a new issue