mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-29 22:01:14 -07:00
CURA-5035 Better linking between Toolbox and CuraPluginManager
This commit is contained in:
parent
5d395f549a
commit
523518020c
6 changed files with 183 additions and 68 deletions
|
|
@ -96,8 +96,11 @@ class CuraPackageManager(QObject):
|
|||
package_info["is_bundled"] = False
|
||||
return package_info
|
||||
|
||||
# TODO: get from plugin registry
|
||||
#self._plugin_registry.
|
||||
for section, packages in self.getAllInstalledPackagesInfo().items():
|
||||
for package in packages:
|
||||
if package["package_id"] == package_id:
|
||||
package_info = package
|
||||
return package_info
|
||||
|
||||
return None
|
||||
|
||||
|
|
@ -133,7 +136,7 @@ class CuraPackageManager(QObject):
|
|||
if package_id in managed_package_id_set:
|
||||
continue
|
||||
|
||||
plugin_package_info["is_bundled"] = True
|
||||
plugin_package_info["is_bundled"] = True if plugin_package_info["author"]["name"] == "Ultimaker B.V." else False
|
||||
plugin_package_info["is_active"] = self._plugin_registry.isActivePlugin(package_id)
|
||||
package_type = "plugin"
|
||||
if package_type not in installed_packages_dict:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue