From 7f83f471e235c9353c776372ada0bf0940a8097d Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 27 Nov 2008 15:41:35 +0900 Subject: [PATCH] remove 'show only current' option again --- ankiqt/config.py | 1 - ankiqt/ui/cardlist.py | 6 +----- ankiqt/ui/preferences.py | 2 -- designer/preferences.ui | 8 -------- 4 files changed, 1 insertion(+), 16 deletions(-) diff --git a/ankiqt/config.py b/ankiqt/config.py index c4bc6673c..1e93059e7 100644 --- a/ankiqt/config.py +++ b/ankiqt/config.py @@ -65,7 +65,6 @@ class Config(dict): 'showTimer': True, 'showSuspendedCards': True, 'simpleToolbar': True, - 'editCurrentOnly': True, 'scrollToAnswer': True, } for (k,v) in fields.items(): diff --git a/ankiqt/ui/cardlist.py b/ankiqt/ui/cardlist.py index ffc057a14..bce5a614e 100644 --- a/ankiqt/ui/cardlist.py +++ b/ankiqt/ui/cardlist.py @@ -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("") - 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: diff --git a/ankiqt/ui/preferences.py b/ankiqt/ui/preferences.py index 7dbf0930a..3d18d9431 100644 --- a/ankiqt/ui/preferences.py +++ b/ankiqt/ui/preferences.py @@ -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: diff --git a/designer/preferences.ui b/designer/preferences.ui index 60bbac0d2..55d83b2ed 100644 --- a/designer/preferences.ui +++ b/designer/preferences.ui @@ -435,13 +435,6 @@ - - - Show only current card in editor - - - - Scroll down to the answer when showing answer @@ -530,7 +523,6 @@ showToolbar tallButtons showTray - editCurrentOnly scrollToAnswer toolbarIconSize buttonBox