mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-19 12:47:49 -06:00
Make the installed_packages private
CURA-8254
This commit is contained in:
parent
cb4d5ce6e5
commit
587421f97a
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ class MaterialManagementModel(QObject):
|
||||||
a message prompting the user to sync the materials with their printers.
|
a message prompting the user to sync the materials with their printers.
|
||||||
"""
|
"""
|
||||||
application = cura.CuraApplication.CuraApplication.getInstance()
|
application = cura.CuraApplication.CuraApplication.getInstance()
|
||||||
for package_id, package_data in application.getPackageManager().installed_packages.items():
|
for package_id, package_data in application.getPackageManager().getPackagesInstalledOnStartup().items():
|
||||||
if package_data["package_info"]["package_type"] == "material":
|
if package_data["package_info"]["package_type"] == "material":
|
||||||
# At least one new material was installed
|
# At least one new material was installed
|
||||||
self._showSyncNewMaterialsMessage()
|
self._showSyncNewMaterialsMessage()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue