diff --git a/src/calibre/gui2/actions/preferences.py b/src/calibre/gui2/actions/preferences.py index 1ebd4ea6ba..c3bf9bbe8b 100644 --- a/src/calibre/gui2/actions/preferences.py +++ b/src/calibre/gui2/actions/preferences.py @@ -24,6 +24,8 @@ class PreferencesAction(InterfaceAction): pm.addAction(QIcon(I('config.png')), _('Change calibre behavior'), self.do_config) pm.addAction(QIcon(I('wizard.png')), _('Run welcome wizard'), self.gui.run_wizard) + pm.addAction(QIcon(I('plugins/plugin_updater.png')), + _('Get plugins to enhance calibre'), self.get_plugins) if not DEBUG: pm.addSeparator() ac = pm.addAction(QIcon(I('debug.png')), _('Restart in debug mode'), @@ -36,6 +38,12 @@ class PreferencesAction(InterfaceAction): for x in (self.gui.preferences_action, self.qaction): x.triggered.connect(self.do_config) + def get_plugins(self): + from calibre.gui2.dialogs.plugin_updater import (PluginUpdaterDialog, + FILTER_NOT_INSTALLED) + d = PluginUpdaterDialog(self.gui, + initial_filter=FILTER_NOT_INSTALLED) + d.exec_() def do_config(self, checked=False, initial_plugin=None, close_after_initial=False): diff --git a/src/calibre/gui2/dialogs/plugin_updater.py b/src/calibre/gui2/dialogs/plugin_updater.py index 5e0da6aca2..3656d908da 100644 --- a/src/calibre/gui2/dialogs/plugin_updater.py +++ b/src/calibre/gui2/dialogs/plugin_updater.py @@ -480,7 +480,7 @@ class PluginUpdaterDialog(SizePersistedDialog): self.setWindowTitle(_('Check for user plugin updates')) layout = QVBoxLayout(self) self.setLayout(layout) - title_layout = ImageTitleLayout(self, 'images/plugin_updater.png', _('User Plugin Status')) + title_layout = ImageTitleLayout(self, 'plugins/plugin_updater.png', _('User Plugin Status')) layout.addLayout(title_layout) header_layout = QHBoxLayout()