Plugin updater dialog: Use index names

Use index names as the key for plugins rather than names from the
plugin zip file, as deprecated plugins sometimes have the same name in
the zip file, but different names in the index.
This commit is contained in:
Kovid Goyal 2013-08-05 22:33:05 +05:30
parent 8d3fd8b05c
commit 768cd4d887

View File

@ -185,7 +185,7 @@ class PluginFilterComboBox(QComboBox):
class DisplayPlugin(object): class DisplayPlugin(object):
def __init__(self, plugin): def __init__(self, plugin):
self.name = plugin['name'] self.name = plugin['index_name']
self.forum_link = plugin['thread_url'] self.forum_link = plugin['thread_url']
self.zip_url = SERVER + plugin['file'] self.zip_url = SERVER + plugin['file']
self.installed_version = None self.installed_version = None