From: Felix Domke Date: Thu, 26 Mar 2009 16:10:17 +0000 (+0100) Subject: don't allow standby when there is no active screen X-Git-Tag: 2.6.0~355^2~2 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/54475ce18e43482b2ec1a150f7fa07c3464ec6d2?hp=cdfb7515f62a8860b763d3a51c92ab94fa8a2191 don't allow standby when there is no active screen --- diff --git a/mytest.py b/mytest.py index b58ec2df..1d9594a9 100755 --- 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")