fix(lib): correct key attribute

This commit is contained in:
Jérome Eertmans
2023-08-04 10:45:19 +02:00
parent 71df62d79b
commit 6ed76ffd01
2 changed files with 2 additions and 3 deletions

View File

@ -68,7 +68,7 @@ class Wizard(QWidget): # type: ignore
self.layout = QGridLayout()
for i, (key, value) in enumerate(self.config.dict().items()):
for i, (key, value) in enumerate(self.config.keys.dict().items()):
# Create label for key name information
label = QLabel()
key_info = value["name"] or key
@ -83,7 +83,7 @@ class Wizard(QWidget): # type: ignore
)
self.buttons.append(button)
button.clicked.connect(
partial(self.openDialog, i, getattr(self.config, key))
partial(self.openDialog, i, getattr(self.config.keys, key))
)
self.layout.addWidget(button, i, 1)