mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 04:26:05 +08:00
Make the installed_packages private
CURA-8254
This commit is contained in:
parent
cb4d5ce6e5
commit
587421f97a
@ -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…
x
Reference in New Issue
Block a user