1
0
Fork 0
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:
Kiripolszky Károly 2018-07-30 21:10:40 +02:00
parent c4e9d1778c
commit ccc5296c9a

View file

@ -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;
}