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/Screens/Ci.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/Screens/Ci.py')
| -rw-r--r-- | lib/python/Screens/Ci.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/python/Screens/Ci.py b/lib/python/Screens/Ci.py index d19386b2..10423ada 100644 --- a/lib/python/Screens/Ci.py +++ b/lib/python/Screens/Ci.py @@ -6,7 +6,9 @@ from Components.Label import Label from Components.config import config, ConfigSubsection, ConfigSelection, ConfigSubList, getConfigListEntry, KEY_LEFT, KEY_RIGHT, KEY_0, ConfigNothing, ConfigPIN from Components.ConfigList import ConfigList -from enigma import eTimer, eDVBCI_UI +from Components.SystemInfo import SystemInfo + +from enigma import eTimer, eDVBCI_UI, eDVBCIInterfaces MAX_NUM_CI = 4 @@ -224,6 +226,7 @@ class CiMessageHandler: self.ci = { } self.dlgs = { } eDVBCI_UI.getInstance().ciStateChanged.get().append(self.ciStateChanged) + SystemInfo["CommonInterface"]= eDVBCIInterfaces.getInstance().getNumOfSlots() > 0 def setSession(self, session): self.session = session |
