git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
filter \n and \t in short description title
[enigma2.git]
/
mytest.py
diff --git
a/mytest.py
b/mytest.py
old mode 100644
(file)
new mode 100755
(executable)
index
8f23bea
..
c335bf2
--- a/
mytest.py
+++ b/
mytest.py
@@
-76,7
+76,6
@@
from Components.PluginComponent import plugins
profile("LOAD:Wizard")
from Screens.Wizard import wizardManager
from Screens.DefaultWizard import *
profile("LOAD:Wizard")
from Screens.Wizard import wizardManager
from Screens.DefaultWizard import *
-from Screens.ImageWizard import *
from Screens.StartWizard import *
from Screens.TutorialWizard import *
import Screens.Rc
from Screens.StartWizard import *
from Screens.TutorialWizard import *
import Screens.Rc
@@
-343,6
+342,9
@@
class PowerKey:
self.session.open(Screens.Standby.TryQuitMainloop, 1)
def powerlong(self):
self.session.open(Screens.Standby.TryQuitMainloop, 1)
def powerlong(self):
+ if Screens.Standby.inTryQuitMainloop or (self.session.current_dialog and not self.session.current_dialog.ALLOW_SUSPEND):
+ return
+
self.standbyblocked = 1
action = config.usage.on_long_powerpress.value
if action == "shutdown":
self.standbyblocked = 1
action = config.usage.on_long_powerpress.value
if action == "shutdown":