diff options
| author | thedoc <thedoc@atom.(none)> | 2009-12-11 13:24:23 +0100 |
|---|---|---|
| committer | thedoc <thedoc@atom.(none)> | 2009-12-11 13:24:23 +0100 |
| commit | 84b36922b357db78b354ea85be700e2dbd15e5d0 (patch) | |
| tree | eb7d68c15034ad1f67c7791be2756c144b72eab4 /lib/python/Plugins | |
| parent | 74378b3ebe7dc0548cb4e4b6a0d54b0e871c0264 (diff) | |
| download | enigma2-84b36922b357db78b354ea85be700e2dbd15e5d0.tar.gz enigma2-84b36922b357db78b354ea85be700e2dbd15e5d0.zip | |
move TempFanControl plugin into system menu
Diffstat (limited to 'lib/python/Plugins')
| -rw-r--r-- | lib/python/Plugins/SystemPlugins/TempFanControl/plugin.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/python/Plugins/SystemPlugins/TempFanControl/plugin.py b/lib/python/Plugins/SystemPlugins/TempFanControl/plugin.py index 5dfacd8a..01c276a4 100644 --- a/lib/python/Plugins/SystemPlugins/TempFanControl/plugin.py +++ b/lib/python/Plugins/SystemPlugins/TempFanControl/plugin.py @@ -146,10 +146,16 @@ class TempFanControl(Screen, ConfigListScreen): fancontrol.getConfig(0).vlt.load() fancontrol.getConfig(0).pwm.load() self.close() - + def main(session, **kwargs): session.open(TempFanControl) +def startMenu(menuid): + if menuid != "system": + return [] + + return [(_("Temperature and Fan control"), main, "tempfancontrol", 80)] + def Plugins(**kwargs): - return PluginDescriptor(name = "Temperature and Fan control", description = _("Temperature and Fan control"), where = PluginDescriptor.WHERE_EXTENSIONSMENU, fnc = main) + return PluginDescriptor(name = "Temperature and Fan control", description = _("Temperature and Fan control"), where = PluginDescriptor.WHERE_MENU, fnc = startMenu)
\ No newline at end of file |
