X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/e66f4bdb5fd20a77e5db713d732275aa32b22af5..cd3cd96e2ff4c6e6a9a38393e4d93167d30f74ea:/lib/python/Components/ConfigList.py diff --git a/lib/python/Components/ConfigList.py b/lib/python/Components/ConfigList.py index f42d6a96..00949e2f 100644 --- a/lib/python/Components/ConfigList.py +++ b/lib/python/Components/ConfigList.py @@ -9,7 +9,7 @@ class ConfigList(HTMLComponent, GUIComponent, object): def __init__(self, list, session = None): GUIComponent.__init__(self) self.l = eListboxPythonConfigContent() - self.l.setSeperation(100) + self.l.setSeperation(200) self.timer = eTimer() self.list = list self.onSelectionChanged = [ ] @@ -19,12 +19,12 @@ class ConfigList(HTMLComponent, GUIComponent, object): def execBegin(self): rcinput = eRCInput.getInstance() rcinput.setKeyboardMode(rcinput.kmAscii) - self.timer.timeout.get().append(self.timeout) + self.timer.callback.append(self.timeout) def execEnd(self): rcinput = eRCInput.getInstance() rcinput.setKeyboardMode(rcinput.kmNone) - self.timer.timeout.get().remove(self.timeout) + self.timer.callback.remove(self.timeout) def toggle(self): selection = self.getCurrent() @@ -77,6 +77,7 @@ class ConfigList(HTMLComponent, GUIComponent, object): if self.current: self.current[1].onDeselect(self.session) instance.selectionChanged.get().remove(self.selectionChanged) + instance.setContent(None) def setList(self, l): self.timer.stop() @@ -171,12 +172,15 @@ class ConfigListScreen: def keyNumberGlobal(self, number): self["config"].handleKey(KEY_0 + number) self.__changed() + + def saveAll(self): + for x in self["config"].list: + x[1].save() # keySave and keyCancel are just provided in case you need them. # you have to call them by yourself. def keySave(self): - for x in self["config"].list: - x[1].save() + self.saveAll() self.close() def cancelConfirm(self, result):