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

only issue is disconnecting on clicking firmware flasher

This commit is contained in:
timman2er 2018-09-28 16:44:11 +02:00
parent c337fdc898
commit 8810d353b2
3 changed files with 17 additions and 2 deletions

View file

@ -171,6 +171,11 @@ function startProcess() {
GUI.tab_switch_in_progress = true;
GUI.tab_switch_cleanup(function () {
// disable active firmware flasher if it was active
if ($('div#flashbutton a.flash_state').hasClass('active') && $('div#flashbutton a.flash').addClass('active')) {
$('div#flashbutton a.flash_state').removeClass('active');
$('div#flashbutton a.flash').removeClass('active');
}
// disable previously active tab highlight
$('li', ui_tabs).removeClass('active');