From f79ade37ecf2fb5560ca4d4cb9e190efe8d0d46d Mon Sep 17 00:00:00 2001 From: Mark Haslinghuis Date: Tue, 8 Dec 2020 21:36:52 +0100 Subject: [PATCH] Disable Exit Dfu Mode button while flashing --- src/js/tabs/firmware_flasher.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/js/tabs/firmware_flasher.js b/src/js/tabs/firmware_flasher.js index bb7dec58..76ce6765 100644 --- a/src/js/tabs/firmware_flasher.js +++ b/src/js/tabs/firmware_flasher.js @@ -1021,7 +1021,7 @@ TABS.firmware_flasher.initialize = function (callback) { }); portPickerElement.change(function () { - if ($('option:selected', this).data().isDFU) { + if ($('option:selected', this).data().isDFU && !GUI.connect_lock) { exitDfuElement.removeClass('disabled'); } else { exitDfuElement.addClass('disabled'); @@ -1096,6 +1096,8 @@ TABS.firmware_flasher.initialize = function (callback) { function startFlashing() { exitDfuElement.addClass('disabled'); + $("a.load_remote_file").addClass('disabled'); + $("a.load_file").addClass('disabled'); if (!GUI.connect_lock) { // button disabled while flashing is in progress if (self.parsed_hex) { try {