remove unneeded and not working Extensions Menu from MoviePlayer .. this
[enigma2.git] / lib / python / Screens / Ci.py
index 27ca5aa39cb0f1c0074856939cbf2c0a7143333f..32cc6fefaebb20e367d0326ea55228aa10ed4c31 100644 (file)
@@ -236,6 +236,7 @@ class CiMessageHandler:
 
        def dlgClosed(self, slot):
                del self.dlgs[slot]
+               self.dlgs.remove(slot)
 
        def registerCIMessageHandler(self, slot, func):
                self.unregisterCIMessageHandler(slot)
@@ -273,6 +274,12 @@ class CiSelection(Screen):
                menuList.list = self.list
                menuList.l.setList(self.list)
                self["entries"] = menuList
+               self["entries"].onSelectionChanged.append(self.selectionChanged)
+               self["text"] = Label(_("Slot %d")%(1))
+
+       def selectionChanged(self):
+               cur_idx = self["entries"].getCurrentIndex()
+               self["text"].setText(_("Slot %d")%((cur_idx / 4)+1))
 
        def keyConfigEntry(self, key):
                try:
@@ -308,7 +315,7 @@ class CiSelection(Screen):
                self.state[slot] = state
 
                slotidx=0
-               while self.list[slotidx][2] != slot:
+               while len(self.list[slotidx]) < 3 or self.list[slotidx][3] != slot:
                        slotidx += 1
 
                slotidx += 1 # do not change Reset