diff options
| author | thedoc <thedoc@atom.(none)> | 2009-12-11 13:24:50 +0100 |
|---|---|---|
| committer | thedoc <thedoc@atom.(none)> | 2009-12-11 13:24:50 +0100 |
| commit | 6f1e7dff0f9ee7f56d48d3597d45d581057d6ce7 (patch) | |
| tree | 13822b1635170981ee0ab8a3fbbe5d030b3237ee /lib/python | |
| parent | 28dcf6be0ee22fedd728fef11ccff484f8a851e8 (diff) | |
| parent | 84b36922b357db78b354ea85be700e2dbd15e5d0 (diff) | |
| download | enigma2-6f1e7dff0f9ee7f56d48d3597d45d581057d6ce7.tar.gz enigma2-6f1e7dff0f9ee7f56d48d3597d45d581057d6ce7.zip | |
Merge branch 'fantempplugin' into experimental
Diffstat (limited to 'lib/python')
| -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 |
