diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-06-28 16:48:18 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-06-28 16:48:18 +0000 |
| commit | c16d405383c4be419e4a88db6d02894b7cfbf74d (patch) | |
| tree | da2cd864e60eb417682dafa6b9b3ea33abdc21c3 /lib/python/Components | |
| parent | e77fe4f47dc53fc7581746ec3670d38425e75439 (diff) | |
| download | enigma2-c16d405383c4be419e4a88db6d02894b7cfbf74d.tar.gz enigma2-c16d405383c4be419e4a88db6d02894b7cfbf74d.zip | |
move dvb-t 5V antenna switching to better place
rename Service Searchin -> Satconfig to -> Nimconfig
Diffstat (limited to 'lib/python/Components')
| -rw-r--r-- | lib/python/Components/NimManager.py | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/python/Components/NimManager.py b/lib/python/Components/NimManager.py index 92ef9dea..5f5ae7bf 100644 --- a/lib/python/Components/NimManager.py +++ b/lib/python/Components/NimManager.py @@ -641,8 +641,6 @@ class NimManager: pass def InitNimManager(nimmgr): - have_terrestrial_tuner = False - config.terrestrial = ConfigSubsection() config.Nims = [] for x in range(nimmgr.nimCount): config.Nims.append(ConfigSubsection()) @@ -660,8 +658,6 @@ 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 @@ -769,20 +765,15 @@ def InitNimManager(nimmgr): elif slot.nimType == nimmgr.nimType["DVB-C"]: nim.cable = configElement(cname + "cable", configSelection, 0, nimmgr.cablesList, False); elif slot.nimType == nimmgr.nimType["DVB-T"]: - have_terrestrial_tuner = True list = [] for x in nimmgr.terrestrialsList: list.append(x[0]) nim.terrestrial = configElement(cname + "terrestrial", configSelection, 0, list, False); + nim.terrestrial_5V = configElement(cname + "terrestrial_5V", configSelection, 1, (("on", _("On")), ("off", _("Off"))), True); else: print "pls add support for this frontend type!" - 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() |
