chore: exit via process
Signed-off-by: mellobacon <mellodev@outlook.com>
mellobacon committed
May 13, 2024 at 13:34 UTC
6e6058fd72cc4a4a750fa4d8a34788d523507798
1 file changed
+2
-1
src/config/commands.ts
+2
-1
@@ -5,6 +5,7 @@ import { saveFile, openFile, openFolder, openInExplorer, renameFile, createFolde
5
import { appWindow } from "@tauri-apps/api/window";
6
import { info, warn } from "tauri-plugin-log-api";
7
import { fitTerminal } from "../lib/Terminal.svelte";
8
+import { exit } from "@tauri-apps/api/process";
9
10
export const commands = {
11
"addEditorTab": {
@@ -175,7 +176,7 @@ export const commands = {
176
"closeWindow": {
177
"keybind": "Alt+F4",
178
"command": async () => {
178
- await appWindow.close();
179
+ await exit();
180
}
181
},
182
"closeTab": {