1.1.3 -> 1.1.4 第59次更新

This commit is contained in:
Space Time 2024-12-14 00:19:15 +08:00
parent 54f9326f29
commit 8dc34243bd

View File

@ -85,8 +85,7 @@ public partial class MainWin : Window
if (!MainPres.IsNginxRunning) if (!MainPres.IsNginxRunning)
NginxStoppedCleaner.Clean(); NginxStoppedCleaner.Clean();
try { UpdateUpstreamHostButton_Click(null!, null!); } UpdateUpstreamHostButton_Click(null!, null!);
catch { }
}); });
} }
private void MainWin_Closing(object sender, CancelEventArgs e) => Application.Current.Shutdown(); private void MainWin_Closing(object sender, CancelEventArgs e) => Application.Current.Shutdown();
@ -448,7 +447,7 @@ public partial class MainWin : Window
catch (UnauthorizedAccessException) { Process.Start(new ProcessStartInfo(upstreamUpstreamHostUrl) { UseShellExecute = true, Verb = "RunAs" }); } catch (UnauthorizedAccessException) { Process.Start(new ProcessStartInfo(upstreamUpstreamHostUrl) { UseShellExecute = true, Verb = "RunAs" }); }
} }
} }
catch { if (sender != null) throw; } catch when (sender == null) { }
} }
private void SettingsButton_Click(object sender, RoutedEventArgs e) => new SettingsWin().ShowDialog(); private void SettingsButton_Click(object sender, RoutedEventArgs e) => new SettingsWin().ShowDialog();