diff --git a/ivette/src/ivette/laboratory.tsx b/ivette/src/ivette/laboratory.tsx index 84ee8fdda2ecb9798c0633e8dc417aa675e8f904..0a2b0788751dcbda95ec1804b8f56a99bd6b1f6d 100644 --- a/ivette/src/ivette/laboratory.tsx +++ b/ivette/src/ivette/laboratory.tsx @@ -607,13 +607,13 @@ Settings.onWindowSettings(() => { const settings = Settings.getWindowSettings( 'ivette.laboratory', jLabSettings, defaultSettings ); - let gotoView: viewId = ''; + let selectTab: viewId = ''; settings.tabs.forEach((tab, index) => { const view = VIEW.getElement(tab.view); if (view !== undefined) { applyFavorite(view, true); if (index === settings.tabIndex) - gotoView = tab.view; + selectTab = tab.view; } }); settings.dock.forEach(dock => { @@ -621,8 +621,13 @@ Settings.onWindowSettings(() => { if (comp !== undefined && !state.docked.has(comp.id)) dockComponent(comp, dock.position); }); - if (!state.tabKey && !gotoView) { - applyTab(gotoView); + if (!state.tabKey) { + if (selectTab) + applyTab(selectTab); + else { + const console = VIEW.getElement('ivette.console'); + if (console !== undefined) applyView(console); + } setCurrentNone(); } } finally {