This commit is contained in:
Jan Prochazka
2022-12-31 13:50:51 +01:00
parent 61a2002627
commit dbdb50f796

View File

@@ -1,7 +1,7 @@
import _ from 'lodash';
import { currentDatabase, getCurrentDatabase, getLockedDatabaseMode, openedTabs } from '../stores';
import { shouldShowTab } from '../widgets/TabsPanel.svelte';
import { callWhenAppLoaded } from './appLoadManager';
import { callWhenAppLoaded, getAppLoaded } from './appLoadManager';
import { getConnectionInfo } from './metadataLoaders';
let lastCurrentTab = null;
@@ -32,6 +32,7 @@ openedTabs.subscribe(value => {
currentDatabase.subscribe(currentDb => {
if (!getLockedDatabaseMode()) return;
if (!currentDb && !getAppLoaded()) return;
openedTabs.update(tabs => {
const newTabs = tabs.map(tab => ({
...tab,