diff options
| author | ghost <andreas.monzner@multimedia-labs.de> | 2010-01-02 09:49:01 +0100 |
|---|---|---|
| committer | ghost <andreas.monzner@multimedia-labs.de> | 2010-01-02 10:51:11 +0100 |
| commit | 45aefe230c922417067e3409039e4372340e894f (patch) | |
| tree | ae2cf99b9df7f3781289cef81151a33b68210e88 | |
| parent | 6a8cfab5b86a3054ee91e82007f91f991bee03dc (diff) | |
| download | enigma2-45aefe230c922417067e3409039e4372340e894f.tar.gz enigma2-45aefe230c922417067e3409039e4372340e894f.zip | |
only show pip option in contextmenu when the hardware can handle pip
| -rw-r--r-- | lib/python/Screens/ChannelSelection.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/python/Screens/ChannelSelection.py b/lib/python/Screens/ChannelSelection.py index 36a54e77..5fbfd591 100644 --- a/lib/python/Screens/ChannelSelection.py +++ b/lib/python/Screens/ChannelSelection.py @@ -22,6 +22,7 @@ from Components.Input import Input profile("ChannelSelection.py 3") from Components.ParentalControl import parentalControl from Components.ChoiceList import ChoiceList, ChoiceEntryComponent +from Components.SystemInfo import SystemInfo from Screens.InputBox import InputBox, PinInput from Screens.MessageBox import MessageBox from Screens.ServiceInfo import ServiceInfo @@ -126,7 +127,7 @@ class ChannelContextMenu(Screen): append_when_current_valid(current, menu, (_("remove entry"), self.removeCurrentService), level = 0) if current_root and current_root.getPath().find("flags == %d" %(FLAG_SERVICE_NEW_FOUND)) != -1: append_when_current_valid(current, menu, (_("remove new found flag"), self.removeNewFoundFlag), level = 0) - if isPlayable: + if isPlayable and SystemInfo.get("NumVideoDecoders", 1) > 1: append_when_current_valid(current, menu, (_("Activate Picture in Picture"), self.showServiceInPiP), level = 0, key = "blue") self.pipAvailable = True else: |
