Skip to content

Commit

Permalink
[ChannelSelection] Delete duplicate option
Browse files Browse the repository at this point in the history
  • Loading branch information
fairbird committed Feb 14, 2025
1 parent 7b2ec6e commit 5319196
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions lib/python/Screens/ChannelSelection.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,6 @@ def __init__(self, session, csel):
if not csel.entry_marked and not self.inBouquetRootList and current_root and not (current_root.flags & eServiceReference.isGroup):
if current.type != -1:
menu.append(ChoiceEntryComponent("dummy", (_("Add marker"), self.showMarkerInputBox)))
if BoxInfo.getItem("HasHDMIin"):
append_when_current_valid(current, menu, (_("Add HDMI IN to bouquet"), self.showHDMIInInputBox))
if not csel.movemode:
if haveBouquets:
append_when_current_valid(current, menu, (_("Enable bouquet edit"), self.bouquetMarkStart), level=0)
Expand Down Expand Up @@ -679,14 +677,6 @@ def copyCurrentToStreamRelay(self):
self.csel.copyCurrentToStreamRelay()
self.close()

def showHDMIInInputBox(self):
self.session.openWithCallback(self.hdmiInputCallback, VirtualKeyBoard, title=_("Please enter a name for the HDMI-IN"), text="HDMI-IN", maxSize=False, visible_width=56, type=Input.TEXT)

def hdmiInputCallback(self, marker):
if marker is not None:
self.csel.addHDMIIn(marker)
self.close()

def showMarkerInputBox(self):
self.session.openWithCallback(self.markerInputCallback, VirtualKeyBoard, title=_("Please enter a name for the new marker"), text="markername", maxSize=False, visible_width=56, type=Input.TEXT)

Expand Down Expand Up @@ -1105,18 +1095,6 @@ def renameEntryCallback(self, name):
if not self.servicelist.atEnd():
self.servicelist.moveUp()

def addHDMIIn(self, name):
current = self.servicelist.getCurrent()
mutableList = self.getMutableList()
cnt = 0
str = '1:64:%d:0:0:0:0:0:0:0::%s' % (cnt, name)
ref = eServiceReference(str)
ref.setName(name)
if mutableList and current and current.valid():
if not mutableList.addService(ref, current):
self.servicelist.addService(ref, True)
mutableList.flushChanges()

def insertService(self, serviceref):
current = self.servicelist.getCurrent()
mutableList = self.getMutableList()
Expand Down

0 comments on commit 5319196

Please sign in to comment.