mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
limit new day starts at to -24~24
This commit is contained in:
parent
bd08dc487b
commit
41868f1c95
1 changed files with 4 additions and 3 deletions
|
@ -202,9 +202,9 @@ class DeckProperties(QDialog):
|
||||||
pass
|
pass
|
||||||
# hour shift
|
# hour shift
|
||||||
try:
|
try:
|
||||||
self.updateField(self.d, 'utcOffset',
|
offset = float(str(self.dialog.timeOffset.text()))
|
||||||
float(str(self.dialog.timeOffset.text()))
|
offset = max(min(offset, 24), -24)
|
||||||
*60*60 + time.timezone)
|
self.updateField(self.d, 'utcOffset', offset*60*60+time.timezone)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
was = self.d.modified
|
was = self.d.modified
|
||||||
|
@ -226,6 +226,7 @@ class DeckProperties(QDialog):
|
||||||
if self.origMod != self.d.modified:
|
if self.origMod != self.d.modified:
|
||||||
if prioritiesChanged:
|
if prioritiesChanged:
|
||||||
self.d.updateAllPriorities()
|
self.d.updateAllPriorities()
|
||||||
|
ankiqt.mw.deck.updateCutoff()
|
||||||
ankiqt.mw.reset()
|
ankiqt.mw.reset()
|
||||||
self.d.setUndoEnd(n)
|
self.d.setUndoEnd(n)
|
||||||
self.d.finishProgress()
|
self.d.finishProgress()
|
||||||
|
|
Loading…
Reference in a new issue