1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-24 00:35:26 +03:00

Fix Load Firmware buttons reactivation after flash

This commit is contained in:
Asizon 2020-12-12 12:44:12 +01:00
parent 7a87426adb
commit 511ba1cf96

View file

@ -1023,7 +1023,9 @@ TABS.firmware_flasher.initialize = function (callback) {
portPickerElement.change(function () { portPickerElement.change(function () {
if ($('option:selected', this).data().isDFU && !GUI.connect_lock) { if ($('option:selected', this).data().isDFU && !GUI.connect_lock) {
exitDfuElement.removeClass('disabled'); exitDfuElement.removeClass('disabled');
} else { } else if (!GUI.connect_lock) {
$("a.load_remote_file").removeClass('disabled');
$("a.load_file").removeClass('disabled');
exitDfuElement.addClass('disabled'); exitDfuElement.addClass('disabled');
} }
}).change(); }).change();