fix standby
authorRonny Strutz <ronny.strutz@multimedia-labs.de>
Mon, 14 Nov 2005 02:36:51 +0000 (02:36 +0000)
committerRonny Strutz <ronny.strutz@multimedia-labs.de>
Mon, 14 Nov 2005 02:36:51 +0000 (02:36 +0000)
lib/python/Screens/InfoBar.py

index e5203fa094a56bd253401e225246d5d14bc29469..6615d6f1ad2a5f4ad80c1ff6ba4cc2a51e993c0d 100644 (file)
@@ -165,11 +165,15 @@ class InfoBar(Screen):
                self.quit()
        
        def powerdown(self):
+               self.standbyblocked = 0
                self.powerKeyTimer.start(3000)
 
        def powerup(self):
                self.powerKeyTimer.stop()
-               self.session.open(Standby, self)
+               if self.standbyblocked == 0:
+                       self.standbyblocked = 1
+                       self.session.open(Standby, self)
+                       
 
        def keyNumberGlobal(self, number):
                print "You pressed number " + str(number)