firmware_flasher: hide layout restore checkbox when in bootloader mode

because we cannot restore layouts without having a keyboard
main
Ilya Zhuravlev 2021-07-04 23:00:26 -04:00
parent 62c4d41669
commit 1ce89e49e5
1 changed files with 2 additions and 0 deletions

View File

@ -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\