mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 04:54:04 -06:00
Added few more deprecation warnings for functions that bloat the machine manager
This commit is contained in:
parent
8907a624e1
commit
05a5f66856
3 changed files with 15 additions and 12 deletions
|
@ -264,18 +264,18 @@ class GlobalStack(CuraContainerStack):
|
|||
def getHeadAndFansCoordinates(self):
|
||||
return self.getProperty("machine_head_with_fans_polygon", "value")
|
||||
|
||||
def getHasMaterials(self) -> bool:
|
||||
@pyqtProperty(int, constant=True)
|
||||
def hasMaterials(self):
|
||||
return parseBool(self.getMetaDataEntry("has_materials", False))
|
||||
|
||||
def getHasVariants(self) -> bool:
|
||||
@pyqtProperty(int, constant=True)
|
||||
def hasVariants(self):
|
||||
return parseBool(self.getMetaDataEntry("has_variants", False))
|
||||
|
||||
def getHasVariantsBuildPlates(self) -> bool:
|
||||
@pyqtProperty(int, constant=True)
|
||||
def hasVariantBuildplates(self) -> bool:
|
||||
return parseBool(self.getMetaDataEntry("has_variant_buildplates", False))
|
||||
|
||||
def getHasMachineQuality(self) -> bool:
|
||||
return parseBool(self.getMetaDataEntry("has_machine_quality", False))
|
||||
|
||||
## Get default firmware file name if one is specified in the firmware
|
||||
@pyqtSlot(result = str)
|
||||
def getDefaultFirmwareName(self) -> str:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue