feat(app): handle SQL export and tray updates
This commit is contained in:
1 parent
b01c17e709
commit
b2be49367c
12 files changed
+153
-11
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user