aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens/InfoBarGenerics.py
diff options
context:
space:
mode:
authorghost <andreas.monzner@multimedia-labs.de>2009-09-22 10:23:09 +0200
committerghost <andreas.monzner@multimedia-labs.de>2009-09-22 10:23:09 +0200
commita16d36a784dbe6a2f3a812407113f5983e911903 (patch)
tree580632ab40b6c17416bbeb17069ed2aa4ee29df0 /lib/python/Screens/InfoBarGenerics.py
parentba67368a1d9b68f0e694cfc29cf567195d29f904 (diff)
parentbf1f752e54c78b226ffb49493cd827d44154887a (diff)
downloadenigma2-a16d36a784dbe6a2f3a812407113f5983e911903.tar.gz
enigma2-a16d36a784dbe6a2f3a812407113f5983e911903.zip
Merge branch 'master' of git.opendreambox.org:/git/enigma2
Diffstat (limited to 'lib/python/Screens/InfoBarGenerics.py')
-rw-r--r--lib/python/Screens/InfoBarGenerics.py15
1 files changed, 11 insertions, 4 deletions
diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py
index 20c069a2..2f830616 100644
--- a/lib/python/Screens/InfoBarGenerics.py
+++ b/lib/python/Screens/InfoBarGenerics.py
@@ -1370,11 +1370,18 @@ class InfoBarSleepTimer:
# depends on InfoBarExtensions
class InfoBarPiP:
def __init__(self):
- self.session.pipshown = False
+ try:
+ self.session.pipshown
+ except:
+ self.session.pipshown = False
if SystemInfo.get("NumVideoDecoders", 1) > 1:
- self.addExtension((self.getShowHideName, self.showPiP, lambda: True), "blue")
- self.addExtension((self.getMoveName, self.movePiP, self.pipShown), "green")
- self.addExtension((self.getSwapName, self.swapPiP, self.pipShown), "yellow")
+ if (self.allowPiP):
+ self.addExtension((self.getShowHideName, self.showPiP, lambda: True), "blue")
+ self.addExtension((self.getMoveName, self.movePiP, self.pipShown), "green")
+ self.addExtension((self.getSwapName, self.swapPiP, self.pipShown), "yellow")
+ else:
+ self.addExtension((self.getShowHideName, self.showPiP, self.pipShown), "blue")
+ self.addExtension((self.getMoveName, self.movePiP, self.pipShown), "green")
def pipShown(self):
return self.session.pipshown