fix: windows service mode

This commit is contained in:
GyDi
2022-11-22 22:01:34 +08:00
parent 40c041031e
commit 1550d528bd
4 changed files with 18 additions and 10 deletions

View File

@@ -48,7 +48,7 @@ export const ServiceViewer = forwardRef<DialogRef, Props>((props, ref) => {
const onUninstall = useLockFn(async () => {
try {
if (state === "active" && enable) {
if (enable) {
await patchVergeConfig({ enable_service_mode: false });
}