mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-16 12:55:14 +03:00
load mixer config on demand
This commit is contained in:
parent
f71dcb9c3c
commit
c4e9d1778c
5 changed files with 18 additions and 12 deletions
|
@ -323,17 +323,11 @@ GUI_control.prototype.content_ready = function (callback) {
|
|||
|
||||
GUI_control.prototype.selectDefaultTabWhenConnected = function() {
|
||||
chrome.storage.local.get(['rememberLastTab', 'lastTab'], function (result) {
|
||||
let fallbackTab = '#tabs ul.mode-connected .tab_setup a';
|
||||
if (!(result.rememberLastTab && !!result.lastTab)) {
|
||||
$(fallbackTab).click();
|
||||
$('#tabs ul.mode-connected .tab_setup a').click();
|
||||
return;
|
||||
}
|
||||
let $savedTab = $("#tabs ul.mode-connected ." + result.lastTab + " a");
|
||||
if (!!$savedTab.data("ignore-reopen")) {
|
||||
$(fallbackTab).click();
|
||||
} else {
|
||||
$savedTab.click();
|
||||
}
|
||||
$("#tabs ul.mode-connected ." + result.lastTab + " a").click();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue