1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-20 06:45:12 +03:00

Improve conditionals

This commit is contained in:
Asizon 2020-12-13 08:40:57 +01:00
parent 511ba1cf96
commit d243a24755

View file

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