mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 16:02:23 -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,
|
||||
'splitQA': True,
|
||||
'standaloneWindows': True,
|
||||
'studyOptionsScreen': 0,
|
||||
'suppressEstimates': False,
|
||||
'suppressUpdate': False,
|
||||
'syncInMsgBox': False,
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue