From: Andreas Monzner Date: Mon, 9 Oct 2006 00:34:56 +0000 (+0000) Subject: simplify code X-Git-Tag: 2.6.0~2984 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/92eea9b3204d5caf7df17251f48e00d482c4a7d7 simplify code --- diff --git a/lib/python/Screens/Ci.py b/lib/python/Screens/Ci.py index cde68c2e..c3302a1c 100644 --- a/lib/python/Screens/Ci.py +++ b/lib/python/Screens/Ci.py @@ -13,8 +13,6 @@ from Components.ConfigList import ConfigList from enigma import eTimer, eDVBCI_UI, eListboxPythonStringContent, eListboxPythonConfigContent -TYPE_MENU = 0 -TYPE_CONFIG = 1 MAX_NUM_CI = 4 def InitCiConfig(): @@ -40,7 +38,6 @@ class CiMmi(Screen): self["subtitle"] = Label("") self["bottom"] = Label("") self["entries"] = ConfigList([ ]) - self.listtype = TYPE_CONFIG self["actions"] = NumberActionMap(["SetupActions"], { @@ -158,22 +155,7 @@ class CiMmi(Screen): try: List.instance.moveSelectionTo(0) except: - List.l.setList(list) - return - - if self.tag and self.tag == "ENQ": - type = TYPE_CONFIG - else: - type = TYPE_MENU - - if type != self.listtype: - if type == TYPE_CONFIG: - List.l = eListboxPythonConfigContent() - else: - List.l = eListboxPythonStringContent() - List.instance.setContent(List.l) - self.listtype = type - + pass List.l.setList(list) def showWait(self): @@ -182,7 +164,7 @@ class CiMmi(Screen): self["subtitle"].setText("") self["bottom"].setText("") list = [ ] - list.append( ("wait for ci...", 0) ) + list.append( (_("wait for ci..."), ConfigNothing()) ) self.updateList(list) def showScreen(self):