PluginManager/PluginInfoDialog.py

changeset 6080
436ac20f7639
parent 6048
82ad8ec9548c
child 6645
ad476851d7e0
--- a/PluginManager/PluginInfoDialog.py	Mon Jan 22 11:25:48 2018 +0100
+++ b/PluginManager/PluginInfoDialog.py	Mon Jan 22 15:59:30 2018 +0100
@@ -68,18 +68,20 @@
         """
         Private method to create a list entry based on the provided info.
         
-        @param info tuple giving the info for the entry
+        @param info dictionary giving the info for the entry (as returned by
+            PluginManager.getPluginInfos())
+        @type dict
         """
         infoList = [
-            info[0],
-            info[1],
-            info[2],
-            (info[3] and self.tr("Yes") or self.tr("No")),
-            (info[4] and self.tr("Yes") or self.tr("No")),
-            info[5]
+            info["module_name"],
+            info["plugin_name"],
+            info["version"],
+            (info["auto_activate"] and self.tr("Yes") or self.tr("On-Demand")),
+            (info["active"] and self.tr("Yes") or self.tr("No")),
+            info["short_desc"]
         ]
         itm = QTreeWidgetItem(self.pluginList, infoList)
-        if info[6]:
+        if info["error"]:
             # plugin error
             for col in range(self.pluginList.columnCount()):
                 itm.setForeground(col, QBrush(Qt.red))

eric ide

mercurial