Skip to content

Commit

Permalink
Reset button when loading new firmware
Browse files Browse the repository at this point in the history
  • Loading branch information
haslinghuis committed Jan 10, 2024
1 parent 5fa4247 commit 9370702
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/js/tabs/firmware_flasher.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 9370702

Please sign in to comment.