From e6299cd561f48992875f733dbc57553ec7f11b3a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 20 Dec 2017 23:33:55 +0530 Subject: [PATCH] When updating plugins, do not show the dialog asking which toolbar to put the plugin, even if the user has removed the plugin for all toolbars. --- src/calibre/gui2/preferences/plugins.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/calibre/gui2/preferences/plugins.py b/src/calibre/gui2/preferences/plugins.py index 897de11d79..24be3fcd5e 100644 --- a/src/calibre/gui2/preferences/plugins.py +++ b/src/calibre/gui2/preferences/plugins.py @@ -433,6 +433,9 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form): (key, list(gprefs.get('action-layout-'+key, []))) for key in all_locations]) + # If this is an update, do nothing + if previously_installed: + return # If already installed in a GUI container, do nothing for action_names in installed_actions.itervalues(): if plugin_action.name in action_names: