From: thedoc Date: Fri, 1 Jan 2010 13:00:47 +0000 (+0100) Subject: fixes bug #362 X-Git-Tag: 3.0.0~28^2~66^2~112 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/c9315c0737c473abd384dc8950b4c6bbd16dcccc fixes bug #362 allow assigning standby function to long power button press --- 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