#938 current database is not changed after closing tab

This commit is contained in:
SPRINX0\prochazka
2024-11-21 15:03:43 +01:00
parent c6cd865663
commit dc18be07ce
3 changed files with 41 additions and 23 deletions

View File

@@ -295,6 +295,7 @@
import CloseTabModal from '../modals/CloseTabModal.svelte';
import SwitchDatabaseModal from '../modals/SwitchDatabaseModal.svelte';
import { getConnectionLabel } from 'dbgate-tools';
import { changeDatabaseByCurrentTab } from '../utility/changeCurrentDbByTab';
export let multiTabIndex;
export let shownTab;
@@ -334,6 +335,7 @@
return;
}
setSelectedTab(tabid);
changeDatabaseByCurrentTab();
};
const handleMouseDown = (e, tabid) => {