aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthedoc <thedoc@atom.(none)>2010-01-01 14:00:47 +0100
committerthedoc <thedoc@atom.(none)>2010-01-01 14:10:12 +0100
commitc9315c0737c473abd384dc8950b4c6bbd16dcccc (patch)
tree654f903c989bdf711e3ee60a4b095dd4a5dda734
parentee7c6101f67d6b576922bef38a4bc8280ffda4a4 (diff)
downloadenigma2-c9315c0737c473abd384dc8950b4c6bbd16dcccc.tar.gz
enigma2-c9315c0737c473abd384dc8950b4c6bbd16dcccc.zip
fixes bug #362
allow assigning standby function to long power button press
-rw-r--r--lib/python/Components/UsageConfig.py3
-rwxr-xr-xmytest.py2
2 files changed, 4 insertions, 1 deletions
diff --git a/lib/python/Components/UsageConfig.py b/lib/python/Components/UsageConfig.py
index 60827107..f133f9f6 100644
--- a/lib/python/Components/UsageConfig.py
+++ b/lib/python/Components/UsageConfig.py
@@ -51,7 +51,8 @@ def InitUsageConfig():
config.usage.on_long_powerpress = ConfigSelection(default = "show_menu", choices = [
("show_menu", _("show shutdown menu")),
- ("shutdown", _("immediate shutdown")) ] )
+ ("shutdown", _("immediate shutdown")),
+ ("standby", _("Standby")) ] )
config.usage.alternatives_priority = ConfigSelection(default = "0", choices = [
("0", "DVB-S/-C/-T"),
diff --git a/mytest.py b/mytest.py
index c748538a..7eb045ee 100755
--- a/mytest.py
+++ b/mytest.py
@@ -380,6 +380,8 @@ class PowerKey:
menu_screen = self.session.openWithCallback(self.MenuClosed, MainMenu, x)
menu_screen.setTitle(_("Standby / Restart"))
return
+ elif action == "standby":
+ self.standby()
def powerdown(self):
self.standbyblocked = 0