diff options
Diffstat (limited to 'lib/python/Plugins/SystemPlugins/SatelliteEquipmentControl')
| -rw-r--r-- | lib/python/Plugins/SystemPlugins/SatelliteEquipmentControl/plugin.py | 19 |
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) |
