mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06: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
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue