mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
CURA-5035 Added already installed plugins
This commit is contained in:
parent
0f966115e6
commit
5d395f549a
10 changed files with 51 additions and 206 deletions
|
|
@ -118,8 +118,8 @@ class CuraPackageManager(QObject):
|
|||
|
||||
package_type = package_info["package_type"]
|
||||
if package_type not in installed_packages_dict:
|
||||
installed_packages_dict[package_type] = {}
|
||||
installed_packages_dict[package_type][package_id] = package_info
|
||||
installed_packages_dict[package_type] = []
|
||||
installed_packages_dict[package_type].append( package_info )
|
||||
|
||||
# We also need to get information from the plugin registry such as if a plugin is active
|
||||
package_info["is_active"] = self._plugin_registry.isActivePlugin(package_id)
|
||||
|
|
@ -137,8 +137,8 @@ class CuraPackageManager(QObject):
|
|||
plugin_package_info["is_active"] = self._plugin_registry.isActivePlugin(package_id)
|
||||
package_type = "plugin"
|
||||
if package_type not in installed_packages_dict:
|
||||
installed_packages_dict[package_type] = {}
|
||||
installed_packages_dict[package_type][package_id] = plugin_package_info
|
||||
installed_packages_dict[package_type] = []
|
||||
installed_packages_dict[package_type].append( plugin_package_info )
|
||||
|
||||
return installed_packages_dict
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue