fix: unexpected restart behavior #4438

This commit is contained in:
Tunglies
2025-08-27 22:04:44 +08:00
Unverified
parent 040fcd059f
commit 824814da56

View File

@@ -7,7 +7,6 @@ use crate::{
utils::{logging::Type, resolve},
};
use serde_yaml::{Mapping, Value};
use tauri::Manager;
/// Restart the Clash core
pub async fn restart_clash_core() {
@@ -31,7 +30,7 @@ pub async fn restart_app() {
handle::Handle::global()
.app_handle()
.map(|app_handle| {
tauri::process::restart(&app_handle.env());
app_handle.restart();
})
.unwrap_or_else(|| {
logging_error!(