From d89be097be4a9ac52166c5f47cc189c5522d3441 Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Fri, 1 Feb 2008 23:15:24 +0000 Subject: add possibilty to hide menu entries when needed hardware is not available --- lib/python/Components/UsageConfig.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/python/Components/UsageConfig.py') diff --git a/lib/python/Components/UsageConfig.py b/lib/python/Components/UsageConfig.py index 73538eaf..36d149cf 100644 --- a/lib/python/Components/UsageConfig.py +++ b/lib/python/Components/UsageConfig.py @@ -1,5 +1,6 @@ from config import ConfigSubsection, ConfigYesNo, config, ConfigSelection, ConfigText, ConfigInteger from enigma import Misc_Options, setTunerTypePriorityOrder; +from SystemInfo import SystemInfo import os def InitUsageConfig(): @@ -63,4 +64,6 @@ def InitUsageConfig(): Misc_Options.getInstance().set_12V_output(0) config.usage.output_12V.addNotifier(set12VOutput) + SystemInfo["12V_Output"] = Misc_Options.getInstance().detected_12V_output() + config.usage.keymap = ConfigText(default = "/usr/share/enigma2/keymap.xml") -- cgit v1.2.3