diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2007-07-24 21:59:53 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2007-07-24 21:59:53 +0000 |
| commit | 3599539f102d1c20c9c967249a06bbfcf6e7db2d (patch) | |
| tree | 68d56cc111f089075e9afcacac48992f4a1760b7 /lib/python/Plugins/SystemPlugins/SatelliteEquipmentControl | |
| parent | c837bb32bf400c958e443d20197c4f1e2fc960f9 (diff) | |
| download | enigma2-3599539f102d1c20c9c967249a06bbfcf6e7db2d.tar.gz enigma2-3599539f102d1c20c9c967249a06bbfcf6e7db2d.zip | |
display Satfinder, SatelliteEquipmentControl and PositionerSetup
plugins only if a DVB-S or DVB-S2 frontend is installed
Diffstat (limited to 'lib/python/Plugins/SystemPlugins/SatelliteEquipmentControl')
| -rw-r--r-- | lib/python/Plugins/SystemPlugins/SatelliteEquipmentControl/plugin.py | 5 |
1 files changed, 4 insertions, 1 deletions
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 [] |
