- 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, "satellite_equipment_setup", None)]
+
+ return [ ]