Allow DigitalFactory bundled-plugin to autoselect format on save.

There was an earlier implementation of this, which was hacky, and didn't work anymore.

CURA-11958
This commit is contained in:
Remco Burema 2024-07-17 18:05:33 +02:00
parent 1c244f0a83
commit 39d9ab7afb
2 changed files with 10 additions and 1 deletions

View file

@ -83,6 +83,15 @@ class GlobalStack(CuraContainerStack):
"""
return self.getMetaDataEntry("supports_material_export", False)
@pyqtProperty("QVariantList", constant = True)
def getOutputFileFormats(self) -> List[str]:
"""
Which output formats the printer supports.
:return: A list of strings with MIME-types.
"""
all_formats_str = self.getMetaDataEntry("file_formats", "")
return all_formats_str.split(";")
@classmethod
def getLoadingPriority(cls) -> int:
return 2