diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2008-02-01 23:15:24 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2008-02-01 23:15:24 +0000 |
| commit | d89be097be4a9ac52166c5f47cc189c5522d3441 (patch) | |
| tree | 7da4329e4fa22017a7312da52bfe7b1df8a16a02 /lib/python/Components/AVSwitch.py | |
| parent | ec200e0207d0a5ddb91c9c6c4ab8ae1c8f33ecea (diff) | |
| download | enigma2-d89be097be4a9ac52166c5f47cc189c5522d3441.tar.gz enigma2-d89be097be4a9ac52166c5f47cc189c5522d3441.zip | |
add possibilty to hide menu entries when needed hardware is not available
Diffstat (limited to 'lib/python/Components/AVSwitch.py')
| -rw-r--r-- | lib/python/Components/AVSwitch.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/python/Components/AVSwitch.py b/lib/python/Components/AVSwitch.py index d3224fd7..ab17fd82 100644 --- a/lib/python/Components/AVSwitch.py +++ b/lib/python/Components/AVSwitch.py @@ -1,5 +1,6 @@ from config import config, ConfigSelection, ConfigYesNo, ConfigEnableDisable, ConfigSubsection, ConfigBoolean from enigma import eAVSwitch +from SystemInfo import SystemInfo class AVSwitch: INPUT = { "ENCODER": (0, 4), "SCART": (1, 3), "AUX": (2, 4) } @@ -120,3 +121,5 @@ def InitAVSwitch(): config.av.wss.addNotifier(setWSS) iAVSwitch.setInput("ENCODER") # init on startup + SystemInfo["ScartSwitch"] = eAVSwitch.getInstance().haveScartSwitch() + |
