mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 08:22:24 -04:00
remember study options tab, make sure to hide bottom area
This commit is contained in:
parent
1abb47d973
commit
aaaf025062
2 changed files with 4 additions and 0 deletions
|
@ -95,6 +95,7 @@ class Config(dict):
|
||||||
'sortIndex': 0,
|
'sortIndex': 0,
|
||||||
'splitQA': True,
|
'splitQA': True,
|
||||||
'standaloneWindows': True,
|
'standaloneWindows': True,
|
||||||
|
'studyOptionsScreen': 0,
|
||||||
'suppressEstimates': False,
|
'suppressEstimates': False,
|
||||||
'suppressUpdate': False,
|
'suppressUpdate': False,
|
||||||
'syncInMsgBox': False,
|
'syncInMsgBox': False,
|
||||||
|
|
|
@ -1500,6 +1500,7 @@ later by using File>Close.
|
||||||
SIGNAL("clicked()"), self.onNewCategoriesClicked)
|
SIGNAL("clicked()"), self.onNewCategoriesClicked)
|
||||||
self.connect(self.mainWin.revCategories,
|
self.connect(self.mainWin.revCategories,
|
||||||
SIGNAL("clicked()"), self.onRevCategoriesClicked)
|
SIGNAL("clicked()"), self.onRevCategoriesClicked)
|
||||||
|
self.mainWin.tabWidget.setCurrentIndex(self.config['studyOptionsScreen'])
|
||||||
|
|
||||||
def onNewCategoriesClicked(self):
|
def onNewCategoriesClicked(self):
|
||||||
ui.activetags.show(self, "newActive", "newInactive")
|
ui.activetags.show(self, "newActive", "newInactive")
|
||||||
|
@ -1595,6 +1596,7 @@ later by using File>Close.
|
||||||
self.mainWin.revCategoryLabel.setText(rev)
|
self.mainWin.revCategoryLabel.setText(rev)
|
||||||
|
|
||||||
def updateStudyStats(self):
|
def updateStudyStats(self):
|
||||||
|
self.mainWin.buttonStack.hide()
|
||||||
self.deck.reset()
|
self.deck.reset()
|
||||||
self.updateActives()
|
self.updateActives()
|
||||||
wasReached = self.deck.sessionLimitReached()
|
wasReached = self.deck.sessionLimitReached()
|
||||||
|
@ -1738,6 +1740,7 @@ learnt today")
|
||||||
self.deck.flushMod()
|
self.deck.flushMod()
|
||||||
self.deck.reset()
|
self.deck.reset()
|
||||||
self.deck.startSession()
|
self.deck.startSession()
|
||||||
|
self.config['studyOptionsScreen'] = self.mainWin.tabWidget.currentIndex()
|
||||||
self.moveToState("getQuestion")
|
self.moveToState("getQuestion")
|
||||||
|
|
||||||
def onStudyOptions(self):
|
def onStudyOptions(self):
|
||||||
|
|
Loading…
Reference in a new issue