Skip to content
Snippets Groups Projects
Unverified Commit f32c5ba2 authored by GyDi's avatar GyDi Committed by GitHub
Browse files

fix: do not kill sidecar during updating

parent ab53ab21
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,6 @@ import {
} from "@mui/material";
import { relaunch } from "@tauri-apps/api/process";
import { checkUpdate, installUpdate } from "@tauri-apps/api/updater";
import { killSidecar, restartSidecar } from "@/services/cmds";
import { atomUpdateState } from "@/services/states";
import Notice from "../base/base-notice";
......@@ -43,11 +42,9 @@ const UpdateDialog = (props: Props) => {
setUpdateState(true);
try {
await killSidecar();
await installUpdate();
await relaunch();
} catch (err: any) {
await restartSidecar();
Notice.error(err?.message || err.toString());
} finally {
setUpdateState(false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment