feat(app): handle SQL export and tray updates

This commit is contained in:
t8y2 committed 2026-05-18 18:39:59 +08:00
1 parent b01c17e709
commit b2be49367c
12 files changed
+153 -11

No files matched your search

+1 -2
View File
@@ -365,8 +365,7 @@ async function openSqlFile() {
async function openSqlFilePath(path: string) {
if (!isTauriRuntime()) return;
try {
const { readTextFile } = await import("@tauri-apps/plugin-fs");
const content = await readTextFile(path);
const content = await api.readExternalSqlFile(path);
const connectionId =
connectionStore.activeConnectionId || activeTab.value?.connectionId || connectionStore.connections[0]?.id || "";
const connection = connectionId ? connectionStore.getConfig(connectionId) : undefined;