From 3599539f102d1c20c9c967249a06bbfcf6e7db2d Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Tue, 24 Jul 2007 21:59:53 +0000 Subject: display Satfinder, SatelliteEquipmentControl and PositionerSetup plugins only if a DVB-S or DVB-S2 frontend is installed --- lib/python/Plugins/SystemPlugins/SatelliteEquipmentControl/plugin.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/python/Plugins/SystemPlugins/SatelliteEquipmentControl/plugin.py') diff --git a/lib/python/Plugins/SystemPlugins/SatelliteEquipmentControl/plugin.py b/lib/python/Plugins/SystemPlugins/SatelliteEquipmentControl/plugin.py index b9d3e444..2c88bdad 100644 --- a/lib/python/Plugins/SystemPlugins/SatelliteEquipmentControl/plugin.py +++ b/lib/python/Plugins/SystemPlugins/SatelliteEquipmentControl/plugin.py @@ -66,4 +66,7 @@ def SecSetupStart(menuid): return [ ] def Plugins(**kwargs): - return PluginDescriptor(name=_("Satellite Equipment Setup"), description="Setup your satellite equipment", where = PluginDescriptor.WHERE_SETUP, fnc=SecSetupStart) + if (nimmanager.hasNimType("DVB-S")): + return PluginDescriptor(name=_("Satellite Equipment Setup"), description="Setup your satellite equipment", where = PluginDescriptor.WHERE_SETUP, fnc=SecSetupStart) + else: + return [] -- cgit v1.2.3