Merge remote-tracking branch 'origin/3.5'

This commit is contained in:
Lipu Fei 2018-09-18 16:15:55 +02:00
commit 3b62284276
7 changed files with 100 additions and 56 deletions

View file

@ -306,8 +306,8 @@ class Toolbox(QObject, Extension):
all_packages = self._package_manager.getAllInstalledPackagesInfo()
if "plugin" in all_packages:
# For old plugins, we only want to include the old custom plugin that were installed via the old toolbox.
# The bundled plugins will be included in the "bundled_packages.json", so the bundled plugins should be
# excluded from the old plugins list/dict.
# The bundled plugins will be included in JSON files in the "bundled_packages" folder, so the bundled
# plugins should be excluded from the old plugins list/dict.
all_plugin_package_ids = set(package["package_id"] for package in all_packages["plugin"])
self._old_plugin_ids = set(plugin_id for plugin_id in self._old_plugin_ids
if plugin_id not in all_plugin_package_ids)