1.1.4 -> 0.0.1 第8次更新

This commit is contained in:
Space Time 2025-03-02 11:51:08 +08:00
parent a990ec94eb
commit d68e76bfc9
3 changed files with 7 additions and 7 deletions

View File

@ -18,7 +18,7 @@ public partial class AboutWin : Window
private readonly AboutPres AboutPres;
private readonly HttpClient AboutClient = new(new HttpClientHandler { ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator });
internal AboutWin()
public AboutWin()
{
DataContext = AboutPres = new();

View File

@ -59,7 +59,7 @@ public partial class MainWin : Window
private int GameClickTime = 0;
private int GameFlashInterval = 1000;
internal MainWin()
public MainWin()
{
DataContext = MainPres = new();
@ -123,13 +123,13 @@ public partial class MainWin : Window
switch (MainPres.SettingsMode)
{
case MainConst.SettingsMode.BrowserPathMode:
MainPres.BrowserPath = SettingsBox.Text;
MainPres.BrowserPath = SettingsBox.Text ?? string.Empty;
return;
case MainConst.SettingsMode.UpstreamUrlMode:
MainPres.UpstreamUrl = SettingsBox.Text;
MainPres.UpstreamUrl = SettingsBox.Text ?? string.Empty;
return;
case MainConst.SettingsMode.ExtraArgsMode:
MainPres.ExtraArgs = SettingsBox.Text;
MainPres.ExtraArgs = SettingsBox.Text ?? string.Empty;
return;
}
}
@ -179,7 +179,7 @@ public partial class MainWin : Window
}
private void LaunchButton_PointerPressed(object? sender, PointerPressedEventArgs e)
{
Button senderButton = (Button)sender;
Button senderButton = (Button)sender!;
HoldButtonTimer = new() { Interval = TimeSpan.FromSeconds(1) };
HoldButtonTimer.Tick += senderButton == NginxButton ? NginxButtonHoldTimer_Tick : senderButton == MihomoButton ? MihomoButtonHoldTimer_Tick : BrowserButtonHoldTimer_Tick;

View File

@ -11,7 +11,7 @@ public partial class SettingsWin : Window
{
private readonly SettingsPres SettingsPres;
internal SettingsWin()
public SettingsWin()
{
DataContext = SettingsPres = new();