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.

This commit is contained in:
Kovid Goyal 2017-12-20 23:33:55 +05:30
parent 6cd33e110e
commit e6299cd561
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -433,6 +433,9 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
(key, list(gprefs.get('action-layout-'+key, []))) (key, list(gprefs.get('action-layout-'+key, [])))
for key in all_locations]) 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 # If already installed in a GUI container, do nothing
for action_names in installed_actions.itervalues(): for action_names in installed_actions.itervalues():
if plugin_action.name in action_names: if plugin_action.name in action_names: