Skip to content

Commit a2d1a98

Browse files
authored
Fix folders not opening (#162)
1 parent 83d2301 commit a2d1a98

File tree

4 files changed

+77
-135
lines changed

4 files changed

+77
-135
lines changed

main/pages/settings/debug.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ platformInfo.value = currentPlatform;
116116
async function openDataDir() {
117117
if (!dataDir.value) return;
118118
try {
119-
await open(dataDir.value);
119+
await invoke("open_fs", { path: dataDir.value });
120120
} catch (error) {
121121
console.error("Failed to open data dir:", error);
122122
}
@@ -126,7 +126,7 @@ async function openLogFile() {
126126
if (!dataDir.value) return;
127127
try {
128128
const logPath = `${dataDir.value}/drop.log`;
129-
await open(logPath);
129+
await invoke("open_fs", { path: logPath });
130130
} catch (error) {
131131
console.error("Failed to open log file:", error);
132132
}

0 commit comments

Comments
 (0)