mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
34d2b0a64f
commit
1d338fa8c4
@ -337,8 +337,8 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
|
|||||||
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:
|
||||||
error_dialog(self,_('Plugin cannot be disabled'),
|
info_dialog(self, _('Plugin cannot be disabled'),
|
||||||
_('Disabling the plugin %s is not allowed')%plugin.name).exec_()
|
_('Disabling the plugin %s is not allowed')%plugin.name, show=True, show_copy_button=False)
|
||||||
return
|
return
|
||||||
if is_disabled(plugin):
|
if is_disabled(plugin):
|
||||||
enable_plugin(plugin)
|
enable_plugin(plugin)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user