From 9370702fd1e19ae104fa2c03b80ccdfdaf0ea6cc Mon Sep 17 00:00:00 2001 From: Mark Haslinghuis Date: Wed, 10 Jan 2024 22:37:10 +0100 Subject: [PATCH] Reset button when loading new firmware --- src/js/tabs/firmware_flasher.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/js/tabs/firmware_flasher.js b/src/js/tabs/firmware_flasher.js index 433cad25e1..b8dd3a190b 100644 --- a/src/js/tabs/firmware_flasher.js +++ b/src/js/tabs/firmware_flasher.js @@ -691,7 +691,10 @@ firmware_flasher.initialize = function (callback) { // UI Hooks $('a.load_file').on('click', function () { + // Reset button when loading a new firmware self.enableFlashButton(false); + self.enableLoadRemoteFileButton(false); + self.developmentFirmwareLoaded = false; chrome.fileSystem.chooseEntry({ @@ -777,6 +780,8 @@ firmware_flasher.initialize = function (callback) { return; } + // Reset button when loading a new firmware + self.enableFlashButton(false); self.enableLoadRemoteFileButton(false); self.localFirmwareLoaded = false;