1.1.3 -> 1.1.4 第58次更新

This commit is contained in:
Space Time 2024-12-14 00:12:59 +08:00
parent 2660c63311
commit 54f9326f29

View File

@ -409,6 +409,8 @@ public partial class MainWin : Window
Process.Start(new ProcessStartInfo(confPath) { UseShellExecute = true });
}
private async void UpdateUpstreamHostButton_Click(object sender, RoutedEventArgs e)
{
try
{
if (!File.Exists(MainConst.UpstreamHostPath))
File.Create(MainConst.UpstreamHostPath).Dispose();
@ -446,6 +448,8 @@ public partial class MainWin : Window
catch (UnauthorizedAccessException) { Process.Start(new ProcessStartInfo(upstreamUpstreamHostUrl) { UseShellExecute = true, Verb = "RunAs" }); }
}
}
catch { if (sender != null) throw; }
}
private void SettingsButton_Click(object sender, RoutedEventArgs e) => new SettingsWin().ShowDialog();
private async void NoClickButton_Click(object sender, RoutedEventArgs e)