Add notion of whether printers support the material export archive

Contributes to issue CURA-8055.
This commit is contained in:
Ghostkeeper 2021-06-08 16:50:03 +02:00
parent 1f012ce2e4
commit f436cb8e7b
No known key found for this signature in database
GPG key ID: 14C3586CD2EFC5B9
4 changed files with 12 additions and 1 deletions

View file

@ -86,6 +86,14 @@ class GlobalStack(CuraContainerStack):
def supportsNetworkConnection(self):
return self.getMetaDataEntry("supports_network_connection", False)
@pyqtProperty(bool, constant = True)
def supportsMaterialExport(self):
"""
Whether the printer supports Cura's export format of material profiles.
:return: ``True`` if it supports it, or ``False`` if not.
"""
return self.getMetaDataEntry("supports_material_export", False)
@classmethod
def getLoadingPriority(cls) -> int:
return 2