Make the installed_packages private

CURA-8254
This commit is contained in:
Konstantinos Karmas 2021-10-05 14:51:14 +02:00
parent cb4d5ce6e5
commit 587421f97a

View file

@ -41,7 +41,7 @@ class MaterialManagementModel(QObject):
a message prompting the user to sync the materials with their printers.
"""
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":
# At least one new material was installed
self._showSyncNewMaterialsMessage()