add 'progress' source, 'progress to text' converter
[enigma2.git] / lib / python / Components / NimManager.py
index 5920166d9f518d96fe0a0206157d913a6762664f..bfe8f36b8ba167d3cecdd979a9eb39b15bae630c 100644 (file)
@@ -104,6 +104,11 @@ class SecConfigure:
 
                used_nim_slots = [ ]
 
+               for slot in nim_slots:
+                       if slot.type is not None:
+                               used_nim_slots.append((slot.slot, slot.description, slot.config.configMode.value != "nothing" and True or False))
+               eDVBResourceManager.getInstance().setFrontendSlotInformations(used_nim_slots)
+
                for slot in nim_slots:
                        x = slot.slot
                        nim = slot.config
@@ -119,11 +124,6 @@ class SecConfigure:
                                        self.setSatposDepends(sec, x, int(nim.satposDependsTo.value))
                                        self.satposdepends[int(nim.satposDependsTo.value)]=x
 
-                       if slot.type is not None:
-                               used_nim_slots.append((slot.slot, slot.description, nim.configMode.value != "nothing" and True or False))
-
-               eDVBResourceManager.getInstance().setFrontendSlotInformations(used_nim_slots)
-
                for slot in nim_slots:
                        x = slot.slot
                        nim = slot.config
@@ -597,6 +597,9 @@ class NimManager:
                #
                # Type will be either "DVB-S", "DVB-S2", "DVB-T", "DVB-C" or None.
 
+               # nim_slots is an array which has exactly one entry for each slot, even for empty ones.
+               self.nim_slots = [ ]
+
                nimfile = tryOpen("/proc/bus/nim_sockets")
 
                if nimfile is None:
@@ -621,9 +624,6 @@ class NimManager:
                                entries[current_slot]["name"] = _("N/A")
                nimfile.close()
                
-               # nim_slots is an array which has exactly one entry for each slot, even for empty ones.
-               self.nim_slots = [ ]
-
                for id, entry in entries.items():
                        if not (entry.has_key("name") and entry.has_key("type")):
                                entry["name"] =  _("N/A")