diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-05-22 13:19:24 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-05-22 13:19:24 +0000 |
| commit | 961fcb6cec16091f610dec1f019d43b6096e7390 (patch) | |
| tree | f272022790a76a77a32997e20f9a7d81a80cb004 /lib/python/Screens | |
| parent | 9d8d1436be9d8c9c5b79089a288b9716e4a098b9 (diff) | |
| download | enigma2-961fcb6cec16091f610dec1f019d43b6096e7390.tar.gz enigma2-961fcb6cec16091f610dec1f019d43b6096e7390.zip | |
do not ask to scan on tuner 0 when not needed
Diffstat (limited to 'lib/python/Screens')
| -rw-r--r-- | lib/python/Screens/ScanSetup.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/python/Screens/ScanSetup.py b/lib/python/Screens/ScanSetup.py index ff76d020..4983f768 100644 --- a/lib/python/Screens/ScanSetup.py +++ b/lib/python/Screens/ScanSetup.py @@ -601,11 +601,15 @@ class ScanSimple(Screen): nimcount = nimmanager.getNimSocketCount() if nimcount > 0: + scan_possible=True config.scan = ConfigSubsection() config.scan.clearallservices = configElement_nonSave("config.scan.clearallservices", configSelection, 0, (("no", _("no")), ("yes", _("yes")), ("yes_hold_feeds", _("yes (hold feeds)")))) self.list.append(getConfigListEntry(_("Clear before scan"), config.scan.clearallservices)) nim = configElement_nonSave(0, configSelection, 0, (("yes", _("yes")), ("no", _("no")))) - self.list.append(getConfigListEntry(_("Scan NIM") + " 0 (" + nimmanager.getNimTypeName(0) + ")", nim)) + if nimmanager.getNimType(0) == nimmanager.nimType["DVB-S"] and not len(nimmanager.getSatListForNim(0)): + scan_possible=False + if scan_possible: + self.list.append(getConfigListEntry(_("Scan NIM") + " 0 (" + nimmanager.getNimTypeName(0) + ")", nim)) if nimcount > 1 and self.ScanNimTwoNeeded(): nim = configElement_nonSave(1, configSelection, 0, (("yes", _("yes")), ("no", _("no")))) self.list.append(getConfigListEntry(_("Scan NIM") + " 1 (" + nimmanager.getNimTypeName(1) + ")", nim)) |
