feat: kill sidecars when update app

This commit is contained in:
GyDi
2022-02-17 02:10:25 +08:00
parent 3dfe7c27cd
commit 5b83fb496c
4 changed files with 14 additions and 1 deletions

View File

@@ -10,6 +10,7 @@ import {
DialogContentText,
DialogTitle,
} from "@mui/material";
import { killSidecars } from "../../services/cmds";
interface Props {
open: boolean;
@@ -31,6 +32,7 @@ const UpdateDialog = (props: Props) => {
try {
setUploading(true);
uploadingState = true;
await killSidecars();
await installUpdate();
await relaunch();
} catch (error) {