mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 07:52:24 -04:00
welcome screen > study options, disable timer when reviewing early
This commit is contained in:
parent
4945313bfa
commit
2845bb2db2
3 changed files with 4 additions and 9 deletions
|
@ -997,14 +997,10 @@ To upgrade an old deck, download Anki 0.9.8.7."""))
|
|||
|
||||
def updateStudyStats(self):
|
||||
wasReached = self.deck.sessionLimitReached()
|
||||
initial = self.deck.sessionStartTime == 0
|
||||
self.deck.sessionStartTime = 0
|
||||
sessionColour = '<font color=#0000ff>%s</font>'
|
||||
cardColour = '<font color=#0000ff>%s</font>'
|
||||
if initial:
|
||||
# deck just opened, or screen triggered manually
|
||||
top = _("<h1>Welcome Back!</h1>")
|
||||
elif not wasReached:
|
||||
if not wasReached:
|
||||
top = _("<h1>Study Options</h1>")
|
||||
else:
|
||||
top = _("<h1>Well done!</h1>")
|
||||
|
@ -1117,7 +1113,6 @@ day = :d""", d=yesterday)
|
|||
elif (not self.deck.delay0 and
|
||||
not self.mainWin.delayLapsedCards.isChecked()):
|
||||
self.deck.delay0 = 600
|
||||
if not self.deck.sessionStartTime or self.deck.sessionLimitReached():
|
||||
self.deck.startSession()
|
||||
self.deck.flushMod()
|
||||
self.moveToState("getQuestion")
|
||||
|
|
|
@ -253,7 +253,7 @@ You should aim to answer each question within<br>
|
|||
|
||||
def flashTimer(self):
|
||||
if not (self.main.deck.sessionStartTime and
|
||||
self.main.deck.sessionTimeLimit):
|
||||
self.main.deck.sessionTimeLimit) or self.main.deck.reviewEarly:
|
||||
return
|
||||
t = time.time() - self.main.deck.sessionStartTime
|
||||
t = self.main.deck.sessionTimeLimit - t
|
||||
|
|
|
@ -355,7 +355,7 @@
|
|||
<item row="7" column="0" >
|
||||
<widget class="QCheckBox" name="showStudyOptions" >
|
||||
<property name="text" >
|
||||
<string>Show welcome back screen on startup</string>
|
||||
<string>Show study options on deck load</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
Loading…
Reference in a new issue