From: Felix Domke Date: Sun, 8 Oct 2006 20:15:35 +0000 (+0000) Subject: call notifier instantly after they are added X-Git-Tag: 2.6.0~2998 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/c0f63db1291342f40f066e169b97080f1453445e call notifier instantly after they are added --- 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