mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-25 07:39:25 +08: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
@ -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…
x
Reference in New Issue
Block a user