Skip to content

Commit

Permalink
1.1.3 更新
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceTimee committed Oct 21, 2024
1 parent b78c982 commit 2782663
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Wins/MainWin.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ private async void StartButtonHoldTimer_Tick(object? sender, EventArgs e)

await Task.Run(() =>
{
new BrowserProc(MainPres.BrowserPath, sender == null).ShellRun(Path.GetDirectoryName(MainPres.BrowserPath), ($"{CealArgs} {MainPres.ExtraArgs}").Trim());
new BrowserProc(MainPres.BrowserPath, sender == null).ShellRun(Path.GetDirectoryName(MainPres.BrowserPath), ($"{CealArgs} {MainPres.ExtraArgs.Trim()}"));
});
}
private void NginxButton_Click(object sender, RoutedEventArgs e)
Expand Down Expand Up @@ -245,7 +245,7 @@ private async void NginxButtonHoldTimer_Tick(object? sender, EventArgs e)

await Task.Run(() =>
{
new NginxProc().ShellRun(Path.GetDirectoryName(MainConst.NginxPath), @$"-c ""{MainConst.NginxConfPath}""");
new NginxProc().ShellRun(Path.GetDirectoryName(MainConst.NginxPath), @$"-c ""{Path.GetRelativePath(Path.GetDirectoryName(MainConst.NginxPath)!, MainConst.NginxConfPath)}""");
});

while (true)
Expand Down

0 comments on commit 2782663

Please sign in to comment.