mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 23:59:03 +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)
|
||||
|
||||
## Parse the value of the "material compatible" property.
|
||||
def _parseCompatibleValue(self, value: str):
|
||||
@classmethod
|
||||
def _parseCompatibleValue(cls, value: str):
|
||||
return value in {"yes", "unknown"}
|
||||
|
||||
# Map XML file setting names to internal names
|
||||
|
Loading…
x
Reference in New Issue
Block a user