Save Timer time only if longer than 4 minutes.

This commit is contained in:
Pecusx
2017-03-09 02:13:18 +01:00
committed by GitHub
parent 907b931e85
commit 259133bfbb
+3 -2
View File
@@ -1548,9 +1548,10 @@ class Radio:
if self.optionChanged():
display_mode = self.MODE_TIME
self.optionChangedFalse()
# If new time of Timer is set - Save it
# If new time of Timer is set - Save it (only if longer than 4 minutes)
if self.timerValue != self.getStoredTimer():
self.storeTimer(self.timerValue)
if self.timerValue > 4:
self.storeTimer(self.timerValue)
self.setDisplayMode(display_mode)
return