fix: port setting sync problem

This commit is contained in:
wonfen 2025-03-21 12:28:51 +08:00
parent 9d13063d53
commit 22ae6bc583

View File

@ -164,6 +164,7 @@ pub async fn patch_verge(patch: IVerge, not_save_file: bool) -> Result<()> {
// Process updates based on flags
if (update_flags & (UpdateFlags::RestartCore as i32)) != 0 {
Config::generate().await?;
CoreManager::global().restart_core().await?;
}
if (update_flags & (UpdateFlags::ClashConfig as i32)) != 0 {