aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/UsageConfig.py
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2008-02-01 23:15:24 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2008-02-01 23:15:24 +0000
commitd89be097be4a9ac52166c5f47cc189c5522d3441 (patch)
tree7da4329e4fa22017a7312da52bfe7b1df8a16a02 /lib/python/Components/UsageConfig.py
parentec200e0207d0a5ddb91c9c6c4ab8ae1c8f33ecea (diff)
downloadenigma2-d89be097be4a9ac52166c5f47cc189c5522d3441.tar.gz
enigma2-d89be097be4a9ac52166c5f47cc189c5522d3441.zip
add possibilty to hide menu entries when needed hardware is not available
Diffstat (limited to 'lib/python/Components/UsageConfig.py')
-rw-r--r--lib/python/Components/UsageConfig.py3
1 files changed, 3 insertions, 0 deletions
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")