diff --git a/src/js/gui.js b/src/js/gui.js index 50630c754d..1f3a506243 100644 --- a/src/js/gui.js +++ b/src/js/gui.js @@ -355,7 +355,7 @@ class GuiControl { } selectDefaultTabWhenConnected() { const result = getConfig(['rememberLastTab', 'lastTab']); - const tab = result.rememberLastTab && result.lastTab ? result.lastTab : 'tab_setup'; + const tab = result.rememberLastTab && result.lastTab && this.allowedTabs.includes(result.lastTab.substring(4)) ? result.lastTab : 'tab_setup'; $(`#tabs ul.mode-connected .${tab} a`).trigger('click'); }