From f625d79667fe558ca5f9d8914ee75414c22cbefe Mon Sep 17 00:00:00 2001 From: Space Time Date: Thu, 26 Dec 2024 12:35:53 +0800 Subject: [PATCH] =?UTF-8?q?1.1.4=20->=201.1.5=20=E7=AC=AC4=E6=AC=A1?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Proces/BrowserProc.cs | 2 +- Proces/NginxProc.cs | 2 +- Wins/MainWin.xaml.cs | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Proces/BrowserProc.cs b/Proces/BrowserProc.cs index 01269c3..d635d3b 100644 --- a/Proces/BrowserProc.cs +++ b/Proces/BrowserProc.cs @@ -15,7 +15,7 @@ internal class BrowserProc : Proc Process_Exited(null!, null!); } - protected sealed override void Process_Exited(object sender, EventArgs e) + protected sealed override void Process_Exited(object? sender, EventArgs e) { if (ShutDownAppOnProcessExit) Application.Current.Dispatcher.InvokeShutdown(); diff --git a/Proces/NginxProc.cs b/Proces/NginxProc.cs index afd7878..9c3d720 100644 --- a/Proces/NginxProc.cs +++ b/Proces/NginxProc.cs @@ -9,5 +9,5 @@ internal class NginxProc : Proc { internal NginxProc() : base(MainConst.NginxPath) { } - protected override async void Process_Exited(object sender, EventArgs e) => await NginxCleaner.Clean(); + protected override async void Process_Exited(object? sender, EventArgs e) => await NginxCleaner.Clean(); } \ No newline at end of file diff --git a/Wins/MainWin.xaml.cs b/Wins/MainWin.xaml.cs index 5bc8b1c..f42d527 100644 --- a/Wins/MainWin.xaml.cs +++ b/Wins/MainWin.xaml.cs @@ -197,7 +197,7 @@ public partial class MainWin : Window await Task.Run(() => { - new BrowserProc(MainPres.BrowserPath, sender is bool).Run(Path.GetDirectoryName(MainPres.BrowserPath), $"{CealArgs} {MainPres.ExtraArgs.Trim()}"); + new BrowserProc(MainPres.BrowserPath, sender is bool).Run(Path.GetDirectoryName(MainPres.BrowserPath)!, $"{CealArgs} {MainPres.ExtraArgs.Trim()}"); }); } private async void NginxButtonHoldTimer_Tick(object? sender, EventArgs e) @@ -287,7 +287,7 @@ public partial class MainWin : Window await Task.Run(() => { - new NginxProc().Run(Path.GetDirectoryName(MainConst.NginxPath), @$"-c ""{Path.GetRelativePath(Path.GetDirectoryName(MainConst.NginxPath)!, MainConst.NginxConfPath)}"""); + new NginxProc().Run(Path.GetDirectoryName(MainConst.NginxPath)!, @$"-c ""{Path.GetRelativePath(Path.GetDirectoryName(MainConst.NginxPath)!, MainConst.NginxConfPath)}"""); }); while (true) @@ -357,7 +357,7 @@ public partial class MainWin : Window await Task.Run(() => { - new MihomoProc().Run(Path.GetDirectoryName(MainConst.MihomoPath), @$"-d ""{Path.GetDirectoryName(MainConst.MihomoConfPath)}"""); + new MihomoProc().Run(Path.GetDirectoryName(MainConst.MihomoPath)!, @$"-d ""{Path.GetDirectoryName(MainConst.MihomoConfPath)}"""); }); while (true)