diff --git a/lcd4linux/src/plugin.py b/lcd4linux/src/plugin.py index 6ded4bd..8fdf271 100644 --- a/lcd4linux/src/plugin.py +++ b/lcd4linux/src/plugin.py @@ -5531,6 +5531,7 @@ def __init__(self, session, args=0): "cancel": self.cancel, "menu": self.SetupMenu, "displayHelp": self.Exchange, + "ok": self.keyOK, "info": self.ResetInfos }, -1) self.mode = _("On") @@ -8260,6 +8261,18 @@ 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 restartGUI(self, answer): if answer: L4log("GUI Restart") @@ -12489,6 +12502,8 @@ def putProgress(workaround, draw, im): self.draw[draw].rectangle((POSX + 10, ConfigPos + 1, POSX + ProgressBar + 10, ConfigPos + ConfigSize - 1), outline=ConfigColor) else: self.draw[draw].rectangle((POSX + 10, ConfigPos + 1, POSX + ProgressBar + 10, ConfigPos + ConfigSize - 1), outline=ConfigColor, fill=ConfigColorBG) + elif ConfigBorder.startswith("false"): + self.draw[draw].rectangle((POSX + 9, ConfigPos, POSX + ProgressBar + 11, ConfigPos + ConfigSize), fill=ConfigColorBG) elif ConfigBorder == "line": self.draw[draw].rectangle((POSX + 10, ConfigPos + int(ConfigSize / 2) - 1, POSX + ProgressBar + 10, ConfigPos + int(ConfigSize / 2) + 1), outline=ConfigColor, fill=ConfigColor) self.draw[draw].rectangle((POSX + 10, ConfigPos, POSX + event_run + 10, ConfigPos + ConfigSize), fill=ConfigColor)