fix: exit_app event

This commit is contained in:
MystiPanda
2024-02-02 16:32:19 +08:00
parent 6f1299ce9e
commit 0ac91e36a0
5 changed files with 19 additions and 20 deletions

View File

@@ -10,10 +10,9 @@ import {
Input,
Typography,
} from "@mui/material";
import { openAppDir, openCoreDir, openLogsDir } from "@/services/cmds";
import { exitApp, openAppDir, openCoreDir, openLogsDir } from "@/services/cmds";
import { ArrowForward } from "@mui/icons-material";
import { checkUpdate } from "@tauri-apps/api/updater";
import { exit } from "@tauri-apps/api/process";
import { useVerge } from "@/hooks/use-verge";
import { version } from "@root/package.json";
import { DialogRef, Notice } from "@/components/base";
@@ -314,7 +313,7 @@ const SettingVerge = ({ onError }: Props) => {
size="small"
sx={{ my: "2px" }}
onClick={() => {
exit(0);
exitApp();
}}
>
<ArrowForward />