mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Add entry to Preferences menu to get new plugins
This commit is contained in:
parent
047bf3b24c
commit
d22000fc1b
@ -24,6 +24,8 @@ class PreferencesAction(InterfaceAction):
|
|||||||
pm.addAction(QIcon(I('config.png')), _('Change calibre behavior'), self.do_config)
|
pm.addAction(QIcon(I('config.png')), _('Change calibre behavior'), self.do_config)
|
||||||
pm.addAction(QIcon(I('wizard.png')), _('Run welcome wizard'),
|
pm.addAction(QIcon(I('wizard.png')), _('Run welcome wizard'),
|
||||||
self.gui.run_wizard)
|
self.gui.run_wizard)
|
||||||
|
pm.addAction(QIcon(I('plugins/plugin_updater.png')),
|
||||||
|
_('Get plugins to enhance calibre'), self.get_plugins)
|
||||||
if not DEBUG:
|
if not DEBUG:
|
||||||
pm.addSeparator()
|
pm.addSeparator()
|
||||||
ac = pm.addAction(QIcon(I('debug.png')), _('Restart in debug mode'),
|
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):
|
for x in (self.gui.preferences_action, self.qaction):
|
||||||
x.triggered.connect(self.do_config)
|
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,
|
def do_config(self, checked=False, initial_plugin=None,
|
||||||
close_after_initial=False):
|
close_after_initial=False):
|
||||||
|
@ -480,7 +480,7 @@ class PluginUpdaterDialog(SizePersistedDialog):
|
|||||||
self.setWindowTitle(_('Check for user plugin updates'))
|
self.setWindowTitle(_('Check for user plugin updates'))
|
||||||
layout = QVBoxLayout(self)
|
layout = QVBoxLayout(self)
|
||||||
self.setLayout(layout)
|
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)
|
layout.addLayout(title_layout)
|
||||||
|
|
||||||
header_layout = QHBoxLayout()
|
header_layout = QHBoxLayout()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user