don't allow standby when there is no active screen
[vuplus_dvbapp] / mytest.py
index b58ec2d..1d9594a 100755 (executable)
--- a/mytest.py
+++ b/mytest.py
@@ -376,7 +376,7 @@ class PowerKey:
                        self.standby()
 
        def standby(self):
-               if not Screens.Standby.inStandby and self.session.current_dialog and self.session.current_dialog.ALLOW_SUSPEND:
+               if not Screens.Standby.inStandby and self.session.current_dialog and self.session.current_dialog.ALLOW_SUSPEND and self.session.in_exec:
                        self.session.open(Screens.Standby.Standby)
 
 profile("Scart")