From e5ea5996f6f641d5f66f23f9cfba273722740582 Mon Sep 17 00:00:00 2001 From: thedoc Date: Fri, 1 Jan 2010 14:00:47 +0100 Subject: [PATCH] fixes bug #362 allow assigning standby function to long power button press --- mytest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mytest.py b/mytest.py index 253ee16..a3cfb5a 100755 --- a/mytest.py +++ b/mytest.py @@ -383,6 +383,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 -- 2.7.4