remember study options tab, make sure to hide bottom area

This commit is contained in:
Damien Elmes 2010-10-19 19:27:21 +09:00
parent 1abb47d973
commit aaaf025062
2 changed files with 4 additions and 0 deletions

View file

@ -95,6 +95,7 @@ class Config(dict):
'sortIndex': 0,
'splitQA': True,
'standaloneWindows': True,
'studyOptionsScreen': 0,
'suppressEstimates': False,
'suppressUpdate': False,
'syncInMsgBox': False,

View file

@ -1500,6 +1500,7 @@ later by using File>Close.
SIGNAL("clicked()"), self.onNewCategoriesClicked)
self.connect(self.mainWin.revCategories,
SIGNAL("clicked()"), self.onRevCategoriesClicked)
self.mainWin.tabWidget.setCurrentIndex(self.config['studyOptionsScreen'])
def onNewCategoriesClicked(self):
ui.activetags.show(self, "newActive", "newInactive")
@ -1595,6 +1596,7 @@ later by using File>Close.
self.mainWin.revCategoryLabel.setText(rev)
def updateStudyStats(self):
self.mainWin.buttonStack.hide()
self.deck.reset()
self.updateActives()
wasReached = self.deck.sessionLimitReached()
@ -1738,6 +1740,7 @@ learnt today")
self.deck.flushMod()
self.deck.reset()
self.deck.startSession()
self.config['studyOptionsScreen'] = self.mainWin.tabWidget.currentIndex()
self.moveToState("getQuestion")
def onStudyOptions(self):