lib/python/Screens/Standby.py: ignore global actions in standby (i.e. mute/volume)
authorghost <andreas.monzner@multimedia-labs.de>
Wed, 26 May 2010 12:21:56 +0000 (14:21 +0200)
committerghost <andreas.monzner@multimedia-labs.de>
Wed, 26 May 2010 12:21:56 +0000 (14:21 +0200)
this fixes bug #538

lib/python/Screens/Standby.py

index 406b87c..1a7ebbd 100644 (file)
@@ -3,6 +3,7 @@ from Components.ActionMap import ActionMap
 from Components.config import config
 from Components.AVSwitch import AVSwitch
 from Components.SystemInfo import SystemInfo
 from Components.config import config
 from Components.AVSwitch import AVSwitch
 from Components.SystemInfo import SystemInfo
+from GlobalActions import globalActionMap
 from enigma import eDVBVolumecontrol
 
 inStandby = None
 from enigma import eDVBVolumecontrol
 
 inStandby = None
@@ -41,6 +42,8 @@ class Standby(Screen):
                        "power": self.Power
                }, -1)
 
                        "power": self.Power
                }, -1)
 
+               globalActionMap.setEnabled(False)
+
                #mute adc
                self.setMute()
 
                #mute adc
                self.setMute()
 
@@ -72,6 +75,7 @@ class Standby(Screen):
                elif self.paused_service:
                        self.paused_service.unPauseService()
                self.session.screen["Standby"].boolean = False
                elif self.paused_service:
                        self.paused_service.unPauseService()
                self.session.screen["Standby"].boolean = False
+               globalActionMap.setEnabled(True)
 
        def __onFirstExecBegin(self):
                global inStandby
 
        def __onFirstExecBegin(self):
                global inStandby