add pluginlist reload, fix type (thx to Ali Abdul)
authorghost <andreas.monzner@multimedia-labs.de>
Sun, 15 Feb 2009 15:20:49 +0000 (16:20 +0100)
committerghost <andreas.monzner@multimedia-labs.de>
Sun, 15 Feb 2009 15:20:49 +0000 (16:20 +0100)
lib/python/Plugins/SystemPlugins/SoftwareManager/plugin.py

index 14f9ee761f83f18adc5d6037884584a8ed6f6a44..3215dbce3345fd3bf5cd02ba4d1e1d09e7f37ab5 100755 (executable)
@@ -418,6 +418,7 @@ class PacketManager(Screen):
                                self.cachelist[item] = [entry[0], entry[1], entry[2], 'installable']
                                self['list'].l.setList(self.list)
                                write_cache(self.cache_file, self.cachelist)
+                               self.reloadPluginlist()
                if result:
                        quitMainloop(3)
 
@@ -434,12 +435,13 @@ class PacketManager(Screen):
                if result is False:
                        cur = self['list'].l.getCurrentSelection()
                        if cur:
-                               entry = [0]
+                               entry = cur[0]
                                item = self['list'].l.getCurrentSelectionIndex()
                                self.list[item] = self.buildEntryComponent(entry[0], entry[1], entry[2], 'installed')
                                self.cachelist[item] = [entry[0], entry[1], entry[2], 'installed']
                                self['list'].l.setList(self.list)
                                write_cache(self.cache_file, self.cachelist)
+                               self.reloadPluginlist()
                if result:
                        quitMainloop(3)