aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins/SystemPlugins/SatelliteEquipmentControl/plugin.py
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2007-05-18 01:49:59 +0000
committerFelix Domke <tmbinc@elitedvb.net>2007-05-18 01:49:59 +0000
commit961239a024248ee557f1d4fe6797c7f27e2ecf6b (patch)
treed1fb93322fbeb6400a2aeaf9c7d8ebc266a045c9 /lib/python/Plugins/SystemPlugins/SatelliteEquipmentControl/plugin.py
parent908e4245fee8098bd3dcc6bcd49b8971ecdd22ac (diff)
downloadenigma2-961239a024248ee557f1d4fe6797c7f27e2ecf6b.tar.gz
enigma2-961239a024248ee557f1d4fe6797c7f27e2ecf6b.zip
NIM cleanup, as described in https://lists.elitedvb.net/pipermail/enigma2-devel/2007-May/000016.html
Diffstat (limited to 'lib/python/Plugins/SystemPlugins/SatelliteEquipmentControl/plugin.py')
-rw-r--r--lib/python/Plugins/SystemPlugins/SatelliteEquipmentControl/plugin.py19
1 files changed, 11 insertions, 8 deletions
diff --git a/lib/python/Plugins/SystemPlugins/SatelliteEquipmentControl/plugin.py b/lib/python/Plugins/SystemPlugins/SatelliteEquipmentControl/plugin.py
index 5369ccf0..bb745920 100644
--- a/lib/python/Plugins/SystemPlugins/SatelliteEquipmentControl/plugin.py
+++ b/lib/python/Plugins/SystemPlugins/SatelliteEquipmentControl/plugin.py
@@ -52,14 +52,17 @@ def SecSetupMain(Session, **kwargs):
def SecSetupStart(menuid):
show = False
- for slot in nimmgr.nimslots:
- if slot.nimType == nimmgr.nimType["DVB-S"]:
- show = True
- break
- if show and menuid == "scan":
- return [(_("Satellite Equipment Setup"), SecSetupMain)]
- else:
- return []
+
+ # other menu than "scan"?
+ if menuid != "scan":
+ return [ ]
+
+ # only show if DVB-S frontends are available
+ for slot in nimmgr.nim_slots:
+ if slot.isCompatible("DVB-S"):
+ return [(_("Satellite Equipment Setup"), SecSetupMain)]
+
+ return [ ]
def Plugins(**kwargs):
return PluginDescriptor(name=_("Satellite Equipment Setup"), description="Setup your satellite equipment", where = PluginDescriptor.WHERE_SETUP, fnc=SecSetupStart)