aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Screens/InfoBar.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/python/Screens/InfoBar.py b/lib/python/Screens/InfoBar.py
index e5203fa0..6615d6f1 100644
--- a/lib/python/Screens/InfoBar.py
+++ b/lib/python/Screens/InfoBar.py
@@ -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)