small fix
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Mon, 26 Jun 2006 22:48:52 +0000 (22:48 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Mon, 26 Jun 2006 22:48:52 +0000 (22:48 +0000)
lib/python/Components/NimManager.py

index a4bcb80..92ef9de 100644 (file)
@@ -660,6 +660,8 @@ def InitNimManager(nimmgr):
                nimmgr.nimPortCChanged(slotid, configElement.vals[configElement.value][1])
        def nimPortDChanged(slotid, configElement):
                nimmgr.nimPortDChanged(slotid, configElement.vals[configElement.value][1])
+       def terrestrial_5v_changed(configElement):
+               configElement.save()
 
        for slot in nimmgr.nimslots:
                x = slot.slotid
@@ -777,7 +779,10 @@ def InitNimManager(nimmgr):
 
        if have_terrestrial_tuner:
                config.terrestrial.enable_5V = configElement("config.terrestrial.enable_5V", configSelection, 1, (("yes", _("Yes")), ("no", _("No"))), True);
+               config.terrestrial.enable_5V.addNotifier(terrestrial_5v_changed)
 
        nimmgr.sec = SecConfigure(nimmgr)
 
+
+
 nimmanager = NimManager()