aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorthedoc <thedoc@atom.(none)>2010-01-01 14:07:03 +0100
committerthedoc <thedoc@atom.(none)>2010-01-01 14:10:21 +0100
commitb6f95a8f5457c60ccc14192a4d13d3c05fa608be (patch)
tree79c2d41a1903f1e68278947633ee24e514a8133d /lib/python
parentc9315c0737c473abd384dc8950b4c6bbd16dcccc (diff)
downloadenigma2-b6f95a8f5457c60ccc14192a4d13d3c05fa608be.tar.gz
enigma2-b6f95a8f5457c60ccc14192a4d13d3c05fa608be.zip
fixes bug #362
allow configuring short power button action to shutdown, standby, menu
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Components/UsageConfig.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/python/Components/UsageConfig.py b/lib/python/Components/UsageConfig.py
index f133f9f6..21478e90 100644
--- a/lib/python/Components/UsageConfig.py
+++ b/lib/python/Components/UsageConfig.py
@@ -53,6 +53,12 @@ def InitUsageConfig():
("show_menu", _("show shutdown menu")),
("shutdown", _("immediate shutdown")),
("standby", _("Standby")) ] )
+
+ config.usage.on_short_powerpress = ConfigSelection(default = "standby", choices = [
+ ("show_menu", _("show shutdown menu")),
+ ("shutdown", _("immediate shutdown")),
+ ("standby", _("Standby")) ] )
+
config.usage.alternatives_priority = ConfigSelection(default = "0", choices = [
("0", "DVB-S/-C/-T"),