Use getter instead of protected attribute

CURA-6627
This commit is contained in:
Jaime van Kessel 2020-01-16 11:25:30 +01:00
parent 4e0e0c0339
commit 46050f9618
No known key found for this signature in database
GPG Key ID: 3710727397403C91

View File

@ -83,7 +83,7 @@ class ThreeMFWorkspaceWriter(WorkspaceWriter):
def _writePluginMetadataToArchive(self, archive):
file_name_template = "%s/plugin_metadata.json"
for plugin_id, metadata in Application.getInstance()._workspace_metadata_storage.getAllData().items():
for plugin_id, metadata in Application.getInstance().getWorkspaceMetadataStorage().getAllData().items():
file_name = file_name_template % plugin_id
file_in_archive = zipfile.ZipInfo(file_name)
# We have to set the compress type of each file as well (it doesn't keep the type of the entire archive)