Merge pull request #2328 from haslinghuis/fix_exit_dfu

Disable Exit Dfu Mode and Load Firmware buttons while flashing
10.8-maintenance
Michael Keller 2020-12-12 00:18:49 +01:00 committed by GitHub
commit 7a87426adb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

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