1.1.4 -> 1.1.5 第4次更新

This commit is contained in:
Space Time 2024-12-26 12:35:53 +08:00
parent 80abfa8116
commit f625d79667
3 changed files with 5 additions and 5 deletions

View File

@ -15,7 +15,7 @@ internal class BrowserProc : Proc
Process_Exited(null!, null!); 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) if (ShutDownAppOnProcessExit)
Application.Current.Dispatcher.InvokeShutdown(); Application.Current.Dispatcher.InvokeShutdown();

View File

@ -9,5 +9,5 @@ internal class NginxProc : Proc
{ {
internal NginxProc() : base(MainConst.NginxPath) { } 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();
} }

View File

@ -197,7 +197,7 @@ public partial class MainWin : Window
await Task.Run(() => 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) private async void NginxButtonHoldTimer_Tick(object? sender, EventArgs e)
@ -287,7 +287,7 @@ public partial class MainWin : Window
await Task.Run(() => 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) while (true)
@ -357,7 +357,7 @@ public partial class MainWin : Window
await Task.Run(() => 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) while (true)