mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
Revert "selective study option"
This reverts commit ff18c05fbf
.
make it default to true for now
This commit is contained in:
parent
ff18c05fbf
commit
06d4fde294
2 changed files with 1 additions and 13 deletions
|
@ -87,7 +87,6 @@ class Config(dict):
|
|||
'saveAfterAnswerNum': 10,
|
||||
'saveOnClose': True,
|
||||
'scrollToAnswer': True,
|
||||
'selectiveGraphs': True,
|
||||
'showCardTimer': True,
|
||||
'showFontPreview': False,
|
||||
'showLastCardContent': False,
|
||||
|
|
|
@ -161,8 +161,7 @@ class GraphWindow(object):
|
|||
self.parent = parent
|
||||
self.deck = deck
|
||||
self.widgets = []
|
||||
self.dg = anki.graphs.DeckGraphs(
|
||||
deck, selective=self.parent.config['selectiveGraphs'])
|
||||
self.dg = anki.graphs.DeckGraphs(deck)
|
||||
self.diag = IntervalGraph(parent)
|
||||
self.diag.setWindowTitle(_("Deck Graphs"))
|
||||
if parent.config.get('graphsGeom'):
|
||||
|
@ -238,11 +237,6 @@ class GraphWindow(object):
|
|||
self.onShowHide)
|
||||
refresh = QPushButton(_("Refresh"))
|
||||
self.hbox.addWidget(refresh)
|
||||
sel = QCheckBox(_("Selective Study"))
|
||||
self.hbox.addWidget(sel)
|
||||
sel.setChecked(self.parent.config['selectiveGraphs'])
|
||||
sel.connect(sel, SIGNAL("stateChanged(int)"),
|
||||
self.onSelective)
|
||||
self.showhide.connect(refresh, SIGNAL("clicked()"),
|
||||
self.onRefresh)
|
||||
buttonBox = QDialogButtonBox(self.diag)
|
||||
|
@ -255,11 +249,6 @@ class GraphWindow(object):
|
|||
self.onHelp)
|
||||
self.hbox.addWidget(buttonBox)
|
||||
|
||||
def onSelective(self, bool):
|
||||
self.parent.config['selectiveGraphs'] = bool
|
||||
self.dg.selective = bool
|
||||
self.onRefresh()
|
||||
|
||||
def showHideAll(self):
|
||||
self.deck.startProgress(len(self.widgets))
|
||||
for w in self.widgets:
|
||||
|
|
Loading…
Reference in a new issue