mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-16 21:05:30 +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() {
|
GUI_control.prototype.selectDefaultTabWhenConnected = function() {
|
||||||
chrome.storage.local.get(['rememberLastTab', 'lastTab'], function (result) {
|
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();
|
$('#tabs ul.mode-connected .tab_setup a').click();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue