mirror of
https://github.com/SpaceTimee/Sheas-Cealer.git
synced 2025-07-14 05:12:09 +08:00
1.1.4 -> 0.0.1 第8次更新
This commit is contained in:
parent
a990ec94eb
commit
d68e76bfc9
@ -18,7 +18,7 @@ public partial class AboutWin : Window
|
|||||||
private readonly AboutPres AboutPres;
|
private readonly AboutPres AboutPres;
|
||||||
private readonly HttpClient AboutClient = new(new HttpClientHandler { ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator });
|
private readonly HttpClient AboutClient = new(new HttpClientHandler { ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator });
|
||||||
|
|
||||||
internal AboutWin()
|
public AboutWin()
|
||||||
{
|
{
|
||||||
DataContext = AboutPres = new();
|
DataContext = AboutPres = new();
|
||||||
|
|
||||||
|
@ -59,7 +59,7 @@ public partial class MainWin : Window
|
|||||||
private int GameClickTime = 0;
|
private int GameClickTime = 0;
|
||||||
private int GameFlashInterval = 1000;
|
private int GameFlashInterval = 1000;
|
||||||
|
|
||||||
internal MainWin()
|
public MainWin()
|
||||||
{
|
{
|
||||||
DataContext = MainPres = new();
|
DataContext = MainPres = new();
|
||||||
|
|
||||||
@ -123,13 +123,13 @@ public partial class MainWin : Window
|
|||||||
switch (MainPres.SettingsMode)
|
switch (MainPres.SettingsMode)
|
||||||
{
|
{
|
||||||
case MainConst.SettingsMode.BrowserPathMode:
|
case MainConst.SettingsMode.BrowserPathMode:
|
||||||
MainPres.BrowserPath = SettingsBox.Text;
|
MainPres.BrowserPath = SettingsBox.Text ?? string.Empty;
|
||||||
return;
|
return;
|
||||||
case MainConst.SettingsMode.UpstreamUrlMode:
|
case MainConst.SettingsMode.UpstreamUrlMode:
|
||||||
MainPres.UpstreamUrl = SettingsBox.Text;
|
MainPres.UpstreamUrl = SettingsBox.Text ?? string.Empty;
|
||||||
return;
|
return;
|
||||||
case MainConst.SettingsMode.ExtraArgsMode:
|
case MainConst.SettingsMode.ExtraArgsMode:
|
||||||
MainPres.ExtraArgs = SettingsBox.Text;
|
MainPres.ExtraArgs = SettingsBox.Text ?? string.Empty;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -179,7 +179,7 @@ public partial class MainWin : Window
|
|||||||
}
|
}
|
||||||
private void LaunchButton_PointerPressed(object? sender, PointerPressedEventArgs e)
|
private void LaunchButton_PointerPressed(object? sender, PointerPressedEventArgs e)
|
||||||
{
|
{
|
||||||
Button senderButton = (Button)sender;
|
Button senderButton = (Button)sender!;
|
||||||
|
|
||||||
HoldButtonTimer = new() { Interval = TimeSpan.FromSeconds(1) };
|
HoldButtonTimer = new() { Interval = TimeSpan.FromSeconds(1) };
|
||||||
HoldButtonTimer.Tick += senderButton == NginxButton ? NginxButtonHoldTimer_Tick : senderButton == MihomoButton ? MihomoButtonHoldTimer_Tick : BrowserButtonHoldTimer_Tick;
|
HoldButtonTimer.Tick += senderButton == NginxButton ? NginxButtonHoldTimer_Tick : senderButton == MihomoButton ? MihomoButtonHoldTimer_Tick : BrowserButtonHoldTimer_Tick;
|
||||||
|
@ -11,7 +11,7 @@ public partial class SettingsWin : Window
|
|||||||
{
|
{
|
||||||
private readonly SettingsPres SettingsPres;
|
private readonly SettingsPres SettingsPres;
|
||||||
|
|
||||||
internal SettingsWin()
|
public SettingsWin()
|
||||||
{
|
{
|
||||||
DataContext = SettingsPres = new();
|
DataContext = SettingsPres = new();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user