mirror of
https://github.com/ankitects/anki.git
synced 2025-11-08 21:57:12 -05:00
hide & show study option
This commit is contained in:
parent
412ce26b8c
commit
9363e5f6f4
1 changed files with 2 additions and 0 deletions
|
|
@ -1094,6 +1094,7 @@ day = :d""", d=yesterday)
|
|||
SIGNAL("clicked()"),
|
||||
self.onStartReview)
|
||||
self.setupStudyOptions()
|
||||
self.mainWin.studyOptionsFrame.show()
|
||||
|
||||
def setupStudyOptions(self):
|
||||
self.mainWin.newPerDay.setText(str(self.deck.newCardsPerDay))
|
||||
|
|
@ -1108,6 +1109,7 @@ day = :d""", d=yesterday)
|
|||
self.mainWin.delayLapsedCards.setChecked(not self.deck.delay0)
|
||||
|
||||
def onStartReview(self):
|
||||
self.mainWin.studyOptionsFrame.hide()
|
||||
self.config['showStudyOptions'] = self.mainWin.optionsButton.isChecked()
|
||||
try:
|
||||
self.deck.newCardsPerDay = int(self.mainWin.newPerDay.text())
|
||||
|
|
|
|||
Loading…
Reference in a new issue