From b4e8190b52d644d08d5ec84ce6118941a9fac196 Mon Sep 17 00:00:00 2001 From: t8y2 <1156263951@qq.com> Date: Wed, 10 Jun 2026 10:32:04 +0800 Subject: [PATCH] fix(sqlite): prevent file launch from overwriting existing connections --- apps/desktop/src/App.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/desktop/src/App.vue b/apps/desktop/src/App.vue index 30540d9db9..328a922884 100644 --- a/apps/desktop/src/App.vue +++ b/apps/desktop/src/App.vue @@ -493,6 +493,7 @@ function getDbTypeFromPath(path: string): "sqlite" | "duckdb" | null { async function openDbFilePath(path: string) { if (!isTauriRuntime()) return; + await connectionStore.initFromDisk(); try { const name = path.split("/").pop()?.split("\\").pop() || path; const dbType = getDbTypeFromPath(path); @@ -550,6 +551,7 @@ async function openPendingDbFiles() { } async function openConnectionDeepLink(url: string) { + await connectionStore.initFromDisk(); try { const draft = parseConnectionDeepLink(url); if (!draft) return;