mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-18 20:28:01 -06:00
Fix checking whether the old material diameter was the same
Getting the old material diameter wasn't working properly. Contributes to issue CURA-2822.
This commit is contained in:
parent
1d048f39db
commit
0e23930bfe
2 changed files with 3 additions and 3 deletions
|
@ -117,10 +117,10 @@ class GlobalStack(CuraContainerStack):
|
|||
# \return The approximate filament diameter for the printer, as a string.
|
||||
@pyqtProperty(str)
|
||||
def approximateMaterialDiameter(self) -> str:
|
||||
material_diameter = self.definition.getMetaDataEntry("material_diameter")
|
||||
material_diameter = self.definition.getProperty("material_diameter", "value")
|
||||
if material_diameter is None:
|
||||
return "-1"
|
||||
return str(round(float(self.definition.getMetaDataEntry("material_diameter")))) #Round, then convert back to string.
|
||||
return str(round(float(material_diameter))) #Round, then convert back to string.
|
||||
|
||||
# protected:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue