Skip to content

Commit

Permalink
firmware_flasher: ensure parent is set for the checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
xyzz committed Dec 30, 2021
1 parent c348c1a commit a074160
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/python/firmware_flasher.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ def __init__(self, main, parent=None):
self.btn_flash.setText(tr("Flasher", "Flash"))
self.btn_flash.clicked.connect(self.on_click_flash)
progress_flash.addWidget(self.btn_flash)
self.chk_restore_keymap = QCheckBox(tr("Flasher", "Restore current layout after flashing"))
self.chk_restore_keymap = QCheckBox(main)
self.chk_restore_keymap.setText(tr("Flasher", "Restore current layout after flashing"))
self.chk_restore_keymap.setChecked(True)
self.addWidget(self.chk_restore_keymap)
self.addLayout(progress_flash)
Expand Down

0 comments on commit a074160

Please sign in to comment.