Move resetting the standby counter to RecordTimer.py
authorLittlesat <littlesat99@yahoo.com>
Thu, 26 Sep 2013 19:44:57 +0000 (21:44 +0200)
committerLittlesat <littlesat99@yahoo.com>
Thu, 26 Sep 2013 19:44:57 +0000 (21:44 +0200)
Navigation.py
RecordTimer.py

index b94685c..eaeca6f 100644 (file)
@@ -35,8 +35,6 @@ class Navigation:
                self.RecordTimer = RecordTimer.RecordTimer()
                self.__wasTimerWakeup = getFPWasTimerWakeup()
                if self.__wasTimerWakeup:
-                       if Screens.Standby.inStandby: #In case some plugin did put the receiver already in standby
-                               config.misc.standbyCounter.value = 0
                        RecordTimer.RecordTimerEntry.setWasInDeepStandby()
 
        def wasTimerWakeup(self):
index 4493c6f..23714f9 100644 (file)
@@ -362,7 +362,9 @@ class RecordTimerEntry(timer.TimerEntry, object):
 
                                if RecordTimerEntry.wasInDeepStandby:
                                        RecordTimerEntry.keypress()
-                                       if not Screens.Standby.inStandby:
+                                       if Screens.Standby.inStandby: #In case some plugin did put the receiver already in standby
+                                               config.misc.standbyCounter.value = 0
+                                       else:
                                                Notifications.AddNotification(Screens.Standby.Standby, StandbyCounterIncrease=False)
 
                                record_res = self.record_service.start()