ChannelSelection: Only show (un)mark dedicated 3D if box supports 3D
authorlittlesat <littlesat99@yahoo.com>
Tue, 31 Mar 2015 06:00:22 +0000 (08:00 +0200)
committerlittlesat <littlesat99@yahoo.com>
Tue, 31 Mar 2015 06:00:22 +0000 (08:00 +0200)
lib/python/Screens/ChannelSelection.py

index e80b070..65fa07b 100644 (file)
@@ -167,10 +167,11 @@ class ChannelContextMenu(Screen):
                                                        append_when_current_valid(current, menu, (_("remove from parental protection"), boundFunction(self.removeParentalProtection, current)), level=0)
                                                if config.ParentalControl.hideBlacklist.value and not parentalControl.sessionPinCached and config.ParentalControl.storeservicepin.value != "never":
                                                        append_when_current_valid(current, menu, (_("Unhide parental control services"), self.unhideParentalServices), level=0)
-                                       if eDVBDB.getInstance().getFlag(eServiceReference(current.toString())) & FLAG_IS_DEDICATED_3D:
-                                               append_when_current_valid(current, menu, (_("Unmark service as dedicated 3D service"), self.removeDedicated3DFlag), level=0)
-                                       else:
-                                               append_when_current_valid(current, menu, (_("Mark service as dedicated 3D service"), self.addDedicated3DFlag), level=0)
+                                       if SystemInfo["3DMode"]:
+                                               if eDVBDB.getInstance().getFlag(eServiceReference(current.toString())) & FLAG_IS_DEDICATED_3D:
+                                                       append_when_current_valid(current, menu, (_("Unmark service as dedicated 3D service"), self.removeDedicated3DFlag), level=0)
+                                               else:
+                                                       append_when_current_valid(current, menu, (_("Mark service as dedicated 3D service"), self.addDedicated3DFlag), level=0)
                                        if haveBouquets:
                                                bouquets = self.csel.getBouquetList()
                                                if bouquets is None: