naming
This commit is contained in:
@ -210,10 +210,10 @@ class MainWindow(QMainWindow):
|
||||
|
||||
for fn in fns:
|
||||
data = read_dict(fn)
|
||||
for k, v in data.items():
|
||||
tn = v.pop("type")
|
||||
for name, cfg in data.items():
|
||||
tn = cfg.pop("type")
|
||||
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):
|
||||
|
Reference in New Issue
Block a user