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):
|
def updateStudyStats(self):
|
||||||
wasReached = self.deck.sessionLimitReached()
|
wasReached = self.deck.sessionLimitReached()
|
||||||
initial = self.deck.sessionStartTime == 0
|
|
||||||
self.deck.sessionStartTime = 0
|
self.deck.sessionStartTime = 0
|
||||||
sessionColour = '<font color=#0000ff>%s</font>'
|
sessionColour = '<font color=#0000ff>%s</font>'
|
||||||
cardColour = '<font color=#0000ff>%s</font>'
|
cardColour = '<font color=#0000ff>%s</font>'
|
||||||
if initial:
|
if not wasReached:
|
||||||
# deck just opened, or screen triggered manually
|
|
||||||
top = _("<h1>Welcome Back!</h1>")
|
|
||||||
elif not wasReached:
|
|
||||||
top = _("<h1>Study Options</h1>")
|
top = _("<h1>Study Options</h1>")
|
||||||
else:
|
else:
|
||||||
top = _("<h1>Well done!</h1>")
|
top = _("<h1>Well done!</h1>")
|
||||||
|
@ -1117,8 +1113,7 @@ day = :d""", d=yesterday)
|
||||||
elif (not self.deck.delay0 and
|
elif (not self.deck.delay0 and
|
||||||
not self.mainWin.delayLapsedCards.isChecked()):
|
not self.mainWin.delayLapsedCards.isChecked()):
|
||||||
self.deck.delay0 = 600
|
self.deck.delay0 = 600
|
||||||
if not self.deck.sessionStartTime or self.deck.sessionLimitReached():
|
self.deck.startSession()
|
||||||
self.deck.startSession()
|
|
||||||
self.deck.flushMod()
|
self.deck.flushMod()
|
||||||
self.moveToState("getQuestion")
|
self.moveToState("getQuestion")
|
||||||
|
|
||||||
|
|
|
@ -253,7 +253,7 @@ You should aim to answer each question within<br>
|
||||||
|
|
||||||
def flashTimer(self):
|
def flashTimer(self):
|
||||||
if not (self.main.deck.sessionStartTime and
|
if not (self.main.deck.sessionStartTime and
|
||||||
self.main.deck.sessionTimeLimit):
|
self.main.deck.sessionTimeLimit) or self.main.deck.reviewEarly:
|
||||||
return
|
return
|
||||||
t = time.time() - self.main.deck.sessionStartTime
|
t = time.time() - self.main.deck.sessionStartTime
|
||||||
t = self.main.deck.sessionTimeLimit - t
|
t = self.main.deck.sessionTimeLimit - t
|
||||||
|
|
|
@ -355,7 +355,7 @@
|
||||||
<item row="7" column="0" >
|
<item row="7" column="0" >
|
||||||
<widget class="QCheckBox" name="showStudyOptions" >
|
<widget class="QCheckBox" name="showStudyOptions" >
|
||||||
<property name="text" >
|
<property name="text" >
|
||||||
<string>Show welcome back screen on startup</string>
|
<string>Show study options on deck load</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|
Loading…
Reference in a new issue