mirror of
https://github.com/SpaceTimee/Sheas-Cealer.git
synced 2025-07-13 04:42:09 +08:00
1.1.4 -> 1.1.5 第4次更新
This commit is contained in:
parent
80abfa8116
commit
f625d79667
@ -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();
|
||||
|
@ -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();
|
||||
}
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user