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 | |
| 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')
3 files changed, 12 insertions, 3 deletions
diff --git a/lib/python/Plugins/SystemPlugins/PositionerSetup/plugin.py b/lib/python/Plugins/SystemPlugins/PositionerSetup/plugin.py index 49a096fb..9ee47771 100644 --- a/lib/python/Plugins/SystemPlugins/PositionerSetup/plugin.py +++ b/lib/python/Plugins/SystemPlugins/PositionerSetup/plugin.py @@ -574,4 +574,7 @@ def PositionerSetupStart(menuid): return [] def Plugins(**kwargs): - return PluginDescriptor(name=_("Positioner setup"), description="Setup your positioner", where = PluginDescriptor.WHERE_SETUP, fnc=PositionerSetupStart) + if (nimmanager.hasNimType("DVB-S")): + return PluginDescriptor(name=_("Positioner setup"), description="Setup your positioner", where = PluginDescriptor.WHERE_SETUP, fnc=PositionerSetupStart) + else: + return [] 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 [] diff --git a/lib/python/Plugins/SystemPlugins/Satfinder/plugin.py b/lib/python/Plugins/SystemPlugins/Satfinder/plugin.py index f3fb35eb..3cf48fb8 100644 --- a/lib/python/Plugins/SystemPlugins/Satfinder/plugin.py +++ b/lib/python/Plugins/SystemPlugins/Satfinder/plugin.py @@ -284,4 +284,7 @@ def SatfinderStart(menuid): return [] def Plugins(**kwargs): - return PluginDescriptor(name=_("Satfinder"), description="Helps setting up your dish", where = PluginDescriptor.WHERE_SETUP, fnc=SatfinderStart) + if (nimmanager.hasNimType("DVB-T")): + return PluginDescriptor(name=_("Satfinder"), description="Helps setting up your dish", where = PluginDescriptor.WHERE_SETUP, fnc=SatfinderStart) + else: + return [] |
