From 6e575c9cf5738efa8de9e1d445cb51396ae3768b Mon Sep 17 00:00:00 2001 From: Diego Prado Gesto Date: Mon, 11 Jun 2018 15:54:11 +0200 Subject: [PATCH] CURA-5463 The packages that are scheduled to be removed, are not old packages. --- plugins/Toolbox/src/Toolbox.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/Toolbox/src/Toolbox.py b/plugins/Toolbox/src/Toolbox.py index c29c673c8a..2f26e21d65 100644 --- a/plugins/Toolbox/src/Toolbox.py +++ b/plugins/Toolbox/src/Toolbox.py @@ -262,12 +262,14 @@ class Toolbox(QObject, Extension): # list of old plugins old_plugin_ids = self._plugin_registry.getInstalledPlugins() installed_package_ids = self._package_manager.getAllInstalledPackageIDs() + scheduled_to_remove_package_ids = self._package_manager.getToRemovePackageIDs() self._old_plugin_ids = [] self._old_plugin_metadata = [] for plugin_id in old_plugin_ids: - if plugin_id not in installed_package_ids: + # Neither the installed packages nor the packages that are scheduled to remove are old plugins + if plugin_id not in installed_package_ids and plugin_id not in scheduled_to_remove_package_ids: Logger.log('i', 'Found a plugin that was installed with the old plugin browser: %s', plugin_id) old_metadata = self._plugin_registry.getMetaData(plugin_id)