diff --git a/Sheas-Cealer.csproj b/Sheas-Cealer.csproj index 43cbe24..bf9ce70 100644 --- a/Sheas-Cealer.csproj +++ b/Sheas-Cealer.csproj @@ -76,10 +76,10 @@ - + - - + + diff --git a/Wins/MainWin.xaml.cs b/Wins/MainWin.xaml.cs index 0d6e532..f3a5806 100644 --- a/Wins/MainWin.xaml.cs +++ b/Wins/MainWin.xaml.cs @@ -268,9 +268,6 @@ await Task.Run(() => File.WriteAllText(MainConst.NginxConfPath, ExtraNginxConfs); NginxConfWatcher.EnableRaisingEvents = true; MainPres.IsNginxIniting = false; - - if (sender == null) - Application.Current.Dispatcher.InvokeShutdown(); } else foreach (Process nginxProcess in Process.GetProcessesByName(Path.GetFileNameWithoutExtension(MainConst.NginxPath))) @@ -333,9 +330,6 @@ await Task.Run(() => File.WriteAllText(MainConst.MihomoConfPath, ExtraMihomoConfs); MihomoConfWatcher.EnableRaisingEvents = true; MainPres.IsMihomoIniting = false; - - if (sender == null) - Application.Current.Dispatcher.InvokeShutdown(); } else foreach (Process mihomoProcess in Process.GetProcessesByName(Path.GetFileNameWithoutExtension(MainConst.MihomoPath)))