mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 23:23:57 -06:00
Merge pull request #19300 from Ultimaker/fix-printer-linter-false-warning
Fix false warnings on setting formulas
This commit is contained in:
commit
c75367534d
1 changed files with 9 additions and 1 deletions
|
@ -51,9 +51,17 @@ class Formulas(Linter):
|
|||
self._definition = {}
|
||||
|
||||
def getCuraSettingList(self) -> list:
|
||||
settings_list = []
|
||||
|
||||
with open(os.path.join(os.path.dirname(__file__), "..", "..", "..", "..", "resources", "definitions", "fdmprinter.def.json")) as data:
|
||||
json_data = json.load(data)
|
||||
return self.extractKeys(json_data)
|
||||
settings_list += self.extractKeys(json_data)
|
||||
|
||||
with open(os.path.join(os.path.dirname(__file__), "..", "..", "..", "..", "resources", "definitions", "fdmextruder.def.json")) as data:
|
||||
json_data = json.load(data)
|
||||
settings_list += self.extractKeys(json_data)
|
||||
|
||||
return settings_list
|
||||
|
||||
def extractKeys(self, json_obj, parent_key=''):
|
||||
keys_with_value = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue