From 1ce89e49e534ea3d5a95c8bfd73139326a5e59bd Mon Sep 17 00:00:00 2001 From: Ilya Zhuravlev Date: Sun, 4 Jul 2021 23:00:26 -0400 Subject: [PATCH] firmware_flasher: hide layout restore checkbox when in bootloader mode because we cannot restore layouts without having a keyboard --- src/main/python/firmware_flasher.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/python/firmware_flasher.py b/src/main/python/firmware_flasher.py index 5be3c8e..a1bc133 100644 --- a/src/main/python/firmware_flasher.py +++ b/src/main/python/firmware_flasher.py @@ -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\