firmware_flasher: hide layout restore checkbox when in bootloader mode
because we cannot restore layouts without having a keyboardmain
parent
62c4d41669
commit
1ce89e49e5
|
|
@ -156,8 +156,10 @@ class FirmwareFlasher(BasicEditor):
|
|||
|
||||
if isinstance(self.device, VialBootloader):
|
||||
self.log("Valid Vial Bootloader device at {}".format(self.device.desc["path"].decode("utf-8")))
|
||||
self.chk_restore_keymap.hide()
|
||||
elif isinstance(self.device, VialKeyboard):
|
||||
self.log("Vial keyboard detected")
|
||||
self.chk_restore_keymap.show()
|
||||
|
||||
def valid(self):
|
||||
return isinstance(self.device, VialBootloader) or\
|
||||
|
|
|
|||
Loading…
Reference in New Issue