Fix #1887170 [[Enhancement] Remove the word "plugin" from the list of plugin categories](https://bugs.launchpad.net/calibre/+bug/1887170)

This commit is contained in:
Kovid Goyal 2020-07-10 19:48:21 +05:30
parent 23db78d486
commit 73696d4bae
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -198,9 +198,7 @@ class PluginModel(QAbstractItemModel, AdaptSQP): # {{{
return None
if index.internalId() == 0:
if role == Qt.DisplayRole:
category = self.categories[index.row()]
return (_("%(plugin_type)s %(plugins)s")%
dict(plugin_type=category, plugins=_('plugins')))
return self.categories[index.row()]
else:
plugin = self.index_to_plugin(index)
disabled = is_disabled(plugin)