aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2006-10-08 20:15:35 +0000
committerFelix Domke <tmbinc@elitedvb.net>2006-10-08 20:15:35 +0000
commitc0f63db1291342f40f066e169b97080f1453445e (patch)
tree9a006ebcccffd9dea5a93f5fe94955d50649e8dc /lib/python/Components
parentdad7605fd87ac8f7fcda015e4f3978dfe536d020 (diff)
downloadenigma2-c0f63db1291342f40f066e169b97080f1453445e.tar.gz
enigma2-c0f63db1291342f40f066e169b97080f1453445e.zip
call notifier instantly after they are added
Diffstat (limited to 'lib/python/Components')
-rw-r--r--lib/python/Components/config.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py
index 10f112c6..3b64763e 100644
--- a/lib/python/Components/config.py
+++ b/lib/python/Components/config.py
@@ -73,6 +73,16 @@ class ConfigElement(object):
def addNotifier(self, notifier):
assert callable(notifier), "notifiers must be callable"
self.notifiers.append(notifier)
+
+ # CHECKME:
+ # do we want to call the notifier
+ # - at all when adding it? (yes)
+ # - when the default is active? (yes)
+ # - when no value *yet* has been set,
+ # because no config has ever been read (currently yes)
+ # (though that's not so easy to detect.
+ # the entry could just be new.)
+ notifier(self)
def disableSave(self):
self.save_disabled = True