X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/0d8132d3512dbf77d817aa8fb6684384155b642e..a962b75cb46d2d31613a9de51784ff342841b33d:/mytest.py diff --git a/mytest.py b/mytest.py index aa63567a..8ea13e0a 100644 --- a/mytest.py +++ b/mytest.py @@ -397,7 +397,8 @@ class PowerKey: self.standby() def standby(self): - self.session.open(Standby, self) + if self.session.current_dialog and self.session.current_dialog.ALLOW_SUSPEND: + self.session.open(Standby, self) def quit(self): # halt