mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-16 04:45:20 +03:00
reopen next tab when explicitly leaving CLI, otherwise open setup tab
This commit is contained in:
parent
c4e9d1778c
commit
ccc5296c9a
1 changed files with 3 additions and 1 deletions
|
@ -323,7 +323,9 @@ GUI_control.prototype.content_ready = function (callback) {
|
|||
|
||||
GUI_control.prototype.selectDefaultTabWhenConnected = function() {
|
||||
chrome.storage.local.get(['rememberLastTab', 'lastTab'], function (result) {
|
||||
if (!(result.rememberLastTab && !!result.lastTab)) {
|
||||
if (!(result.rememberLastTab
|
||||
&& !!result.lastTab
|
||||
&& result.lastTab.substring(4) != "cli")) {
|
||||
$('#tabs ul.mode-connected .tab_setup a').click();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue