mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
...
This commit is contained in:
parent
1768d5cdab
commit
dccbc65fc9
@ -196,6 +196,12 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
|
|||||||
def modify_plugin(self, op=''):
|
def modify_plugin(self, op=''):
|
||||||
index = self.plugin_view.currentIndex()
|
index = self.plugin_view.currentIndex()
|
||||||
if index.isValid():
|
if index.isValid():
|
||||||
|
if not index.parent().isValid():
|
||||||
|
name = unicode(index.data().toString())
|
||||||
|
return error_dialog(self, _('Error'), '<p>'+
|
||||||
|
_('Select an actual plugin under <b>%s</b> to customize')%name,
|
||||||
|
show=True, show_copy_button=False)
|
||||||
|
|
||||||
plugin = self._plugin_model.index_to_plugin(index)
|
plugin = self._plugin_model.index_to_plugin(index)
|
||||||
if op == 'toggle':
|
if op == 'toggle':
|
||||||
if not plugin.can_be_disabled:
|
if not plugin.can_be_disabled:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user