Skip to content

Commit

Permalink
Revert "[ChannelSelection] disable adding service dedicated 3DMode"
Browse files Browse the repository at this point in the history
This reverts commit 4bafabb.
  • Loading branch information
Huevos committed Oct 22, 2024
1 parent 4bafabb commit 48398e1
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions lib/python/Screens/ChannelSelection.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def __init__(self, session, csel):
_append_when_current_valid(current, menu, actions, (_("Stop using as startup service"), self.unsetStartupService), level=0, key="1")
else:
_append_when_current_valid(current, menu, actions, (_("Set as startup service"), self.setStartupService), level=0, key="1")
if False: # disable... SystemInfo["3DMode"]:
if SystemInfo["3DMode"]:
if eDVBDB.getInstance().getFlag(eServiceReference(current.toString())) & FLAG_IS_DEDICATED_3D:
_append_when_current_valid(current, menu, actions, (_("Unmark service as a dedicated 3D service"), self.removeDedicated3DFlag), level=0, key="bullet")
else:
Expand Down Expand Up @@ -417,22 +417,22 @@ def __init__(self, session, csel):
_append_when_current_valid(current, menu, actions, (_("Abort alternatives edit"), self.bouquetMarkAbort), level=0, key="bullet")
self["actions"] = ActionMap(["OkCancelActions", "ColorActions", "NumberActions", "MenuActions"], actions)

# def set3DMode(self, value):
# if config.osd.threeDmode.value == "auto" and self.session.nav.currentlyPlayingServiceReference == self.csel.getCurrentSelection():
# from Screens.VideoMode import applySettings # this import is no longer available
# applySettings(value and "sidebyside" or config.osd.threeDmode.value)

# def addDedicated3DFlag(self):
# eDVBDB.getInstance().addFlag(eServiceReference(self.csel.getCurrentSelection().toString()), FLAG_IS_DEDICATED_3D)
# eDVBDB.getInstance().reloadBouquets()
# self.set3DMode(True)
# self.close()

# def removeDedicated3DFlag(self):
# eDVBDB.getInstance().removeFlag(eServiceReference(self.csel.getCurrentSelection().toString()), FLAG_IS_DEDICATED_3D)
# eDVBDB.getInstance().reloadBouquets()
# self.set3DMode(False)
# self.close()
def set3DMode(self, value):
if config.osd.threeDmode.value == "auto" and self.session.nav.currentlyPlayingServiceReference == self.csel.getCurrentSelection():
from Screens.VideoMode import applySettings
applySettings(value and "sidebyside" or config.osd.threeDmode.value)

def addDedicated3DFlag(self):
eDVBDB.getInstance().addFlag(eServiceReference(self.csel.getCurrentSelection().toString()), FLAG_IS_DEDICATED_3D)
eDVBDB.getInstance().reloadBouquets()
self.set3DMode(True)
self.close()

def removeDedicated3DFlag(self):
eDVBDB.getInstance().removeFlag(eServiceReference(self.csel.getCurrentSelection().toString()), FLAG_IS_DEDICATED_3D)
eDVBDB.getInstance().reloadBouquets()
self.set3DMode(False)
self.close()

def toggleVBI(self):
Screens.InfoBar.InfoBar.instance.ToggleHideVBI(self.csel.getCurrentSelection())
Expand Down

0 comments on commit 48398e1

Please sign in to comment.