This commit is contained in:
2023-04-17 23:11:04 +02:00
parent 3ef9032499
commit dee9cbb934

View File

@ -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):