aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2007-04-12 19:57:48 +0000
committerFelix Domke <tmbinc@elitedvb.net>2007-04-12 19:57:48 +0000
commit897c01289c6e24a3cce676f7c200ccb3b2959f94 (patch)
tree05fb46ba696d190bbd00674374714e74d5b85993 /lib/python
parent517b078279276fa715d53a8b8a364078546c4610 (diff)
downloadenigma2-897c01289c6e24a3cce676f7c200ccb3b2959f94.tar.gz
enigma2-897c01289c6e24a3cce676f7c200ccb3b2959f94.zip
optimize: re-use old content when list changes
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Components/Converter/StringList.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/python/Components/Converter/StringList.py b/lib/python/Components/Converter/StringList.py
index 1304c643..4199212a 100644
--- a/lib/python/Components/Converter/StringList.py
+++ b/lib/python/Components/Converter/StringList.py
@@ -6,9 +6,12 @@ class StringList(Converter):
"""Turns a simple python list into a list which can be used in a listbox."""
def __init__(self, type):
Converter.__init__(self, type)
+ self.content = None
def changed(self, what):
- self.content = eListboxPythonStringContent()
+ if not self.content:
+ self.content = eListboxPythonStringContent()
+
if self.source:
self.content.setList(self.source.list)
self.downstream_elements.changed(what)