mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 22:19:00 +08:00
Make _parseCompatibleValue a class method
It might as well be static, since it doesn't need an instance. Contributes to issue CURA-4243.
This commit is contained in:
parent
74bd527b03
commit
ddf5ab0494
@ -667,7 +667,8 @@ class XmlMaterialProfile(InstanceContainer):
|
|||||||
return json.load(f)
|
return json.load(f)
|
||||||
|
|
||||||
## Parse the value of the "material compatible" property.
|
## Parse the value of the "material compatible" property.
|
||||||
def _parseCompatibleValue(self, value: str):
|
@classmethod
|
||||||
|
def _parseCompatibleValue(cls, value: str):
|
||||||
return value in {"yes", "unknown"}
|
return value in {"yes", "unknown"}
|
||||||
|
|
||||||
# Map XML file setting names to internal names
|
# Map XML file setting names to internal names
|
||||||
|
Loading…
x
Reference in New Issue
Block a user