Skip to content

Commit

Permalink
lcd4linux: Cleanup key controls after new ConfigList changes
Browse files Browse the repository at this point in the history
This also fix the 'Right' button, which  stopped working after the new ConfifList changes.
https://forums.openpli.org/topic/100767-lcd4linux-cannot-change-settings-with-button-right/
  • Loading branch information
Hains committed Dec 11, 2024
1 parent 197670d commit 3084338
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions lcd4linux/src/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -5488,14 +5488,10 @@ def __init__(self, session, args=0):
"green": self.save,
"yellow": self.LCDrestart,
"blue": self.Page,
"nextBouquet": self.KeyUp,
"prevBouquet": self.KeyDown,
"save": self.save,
"cancel": self.cancel,
"menu": self.SetupMenu,
"displayHelp": self.Exchange,
"ok": self.keyOK,
"seekFwd": self.NextScreenKey,
"info": self.ResetInfos
}, -1)
self.mode = _("On")
Expand Down Expand Up @@ -8175,34 +8171,6 @@ def cancel(self):
isMediaPlayer = self.SaveisMediaPlayer
TFTCheck(False)

def keyLeft(self):
L4logE("key L")
self.LastSelect = str(self["config"].getCurrentIndex()) + self.getCurrentValue()[:3]
ConfigListScreen.keyLeft(self)
self.SetList()

def keyRight(self):
L4logE("key R")
self.LastSelect = str(self["config"].getCurrentIndex()) + self.getCurrentValue()[:3]
ConfigListScreen.keyRight(self)
self.SetList()

def KeyUp(self):
self.LastSelect = str(self["config"].getCurrentIndex())
L4logE("key U")
if self["config"].getCurrentIndex() - self.ConfLines > 0:
self["config"].setCurrentIndex(self["config"].getCurrentIndex() - self.ConfLines)
else:
self["config"].setCurrentIndex(0)

def KeyDown(self):
self.LastSelect = str(self["config"].getCurrentIndex())
L4logE("key D")
if self["config"].getCurrentIndex() + self.ConfLines <= (len(self["config"].getList()) - 1):
self["config"].setCurrentIndex(self["config"].getCurrentIndex() + self.ConfLines)
else:
self["config"].setCurrentIndex((len(self["config"].getList()) - 1))

def restartGUI(self, answer):
if answer:
L4log("GUI Restart")
Expand Down

0 comments on commit 3084338

Please sign in to comment.