naming
This commit is contained in:
@ -210,10 +210,10 @@ class MainWindow(QMainWindow):
|
|||||||
|
|
||||||
for fn in fns:
|
for fn in fns:
|
||||||
data = read_dict(fn)
|
data = read_dict(fn)
|
||||||
for k, v in data.items():
|
for name, cfg in data.items():
|
||||||
tn = v.pop("type")
|
tn = cfg.pop("type")
|
||||||
DescType = DESC_TYPES[tn]
|
DescType = DESC_TYPES[tn]
|
||||||
self.add_new_desc_to_list(DescType, k, v)
|
self.add_new_desc_to_list(DescType, name, cfg)
|
||||||
|
|
||||||
|
|
||||||
def on_file_save(self):
|
def on_file_save(self):
|
||||||
|
Reference in New Issue
Block a user