From 69afa484359a8cccaa94da8047904f90b79ec739 Mon Sep 17 00:00:00 2001 From: denglihong2007 <98096191+denglihong2007@users.noreply.github.com> Date: Sat, 13 Sep 2025 00:28:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BA=94=E7=94=A8=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E9=87=8D=E5=90=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CRSim/ViewModels/PluginManagementPageViewModel.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CRSim/ViewModels/PluginManagementPageViewModel.cs b/CRSim/ViewModels/PluginManagementPageViewModel.cs index fd3af09..474a990 100644 --- a/CRSim/ViewModels/PluginManagementPageViewModel.cs +++ b/CRSim/ViewModels/PluginManagementPageViewModel.cs @@ -100,9 +100,10 @@ public partial class PluginManagementPageViewModel : ObservableObject public static void Restart() { string exePath = Environment.ProcessPath; - Process.Start(new ProcessStartInfo(exePath) + Process.Start(new ProcessStartInfo("cmd", $"/C timeout /t 0.75 & start \"\" \"{exePath}\"") { - UseShellExecute = true + CreateNoWindow = true, + UseShellExecute = false }); Application.Current.Exit(); }