1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-25 17:25:16 +03:00

Disable Exit Dfu Mode button while flashing

This commit is contained in:
Mark Haslinghuis 2020-12-08 21:36:52 +01:00
parent 317f937fd5
commit f79ade37ec

View file

@ -1021,7 +1021,7 @@ TABS.firmware_flasher.initialize = function (callback) {
}); });
portPickerElement.change(function () { portPickerElement.change(function () {
if ($('option:selected', this).data().isDFU) { if ($('option:selected', this).data().isDFU && !GUI.connect_lock) {
exitDfuElement.removeClass('disabled'); exitDfuElement.removeClass('disabled');
} else { } else {
exitDfuElement.addClass('disabled'); exitDfuElement.addClass('disabled');
@ -1096,6 +1096,8 @@ TABS.firmware_flasher.initialize = function (callback) {
function startFlashing() { function startFlashing() {
exitDfuElement.addClass('disabled'); 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 (!GUI.connect_lock) { // button disabled while flashing is in progress
if (self.parsed_hex) { if (self.parsed_hex) {
try { try {