mirror of
https://github.com/SpaceTimee/Sheas-Cealer.git
synced 2025-07-14 05:12:09 +08:00
1.1.2 -> 1.1.3 第8次更新
This commit is contained in:
parent
cfe4108590
commit
f54e470874
@ -51,11 +51,6 @@ public partial class MainWin : Window
|
|||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
DataContext = MainPres = new(args);
|
DataContext = MainPres = new(args);
|
||||||
|
|
||||||
ProxyTimer.Tick += ProxyTimer_Tick;
|
|
||||||
CealingHostWatcher.Changed += CealingHostWatcher_Changed;
|
|
||||||
NginxConfWatcher.Changed += NginxConfWatcher_Changed;
|
|
||||||
MihomoConfWatcher.Changed += MihomoConfWatcher_Changed;
|
|
||||||
}
|
}
|
||||||
protected override void OnSourceInitialized(EventArgs e) => IconRemover.RemoveIcon(this);
|
protected override void OnSourceInitialized(EventArgs e) => IconRemover.RemoveIcon(this);
|
||||||
private async void MainWin_Loaded(object sender, RoutedEventArgs e)
|
private async void MainWin_Loaded(object sender, RoutedEventArgs e)
|
||||||
@ -64,6 +59,11 @@ public partial class MainWin : Window
|
|||||||
|
|
||||||
await Task.Run(() =>
|
await Task.Run(() =>
|
||||||
{
|
{
|
||||||
|
ProxyTimer.Tick += ProxyTimer_Tick;
|
||||||
|
CealingHostWatcher.Changed += CealingHostWatcher_Changed;
|
||||||
|
NginxConfWatcher.Changed += NginxConfWatcher_Changed;
|
||||||
|
MihomoConfWatcher.Changed += MihomoConfWatcher_Changed;
|
||||||
|
|
||||||
ProxyTimer.Start();
|
ProxyTimer.Start();
|
||||||
|
|
||||||
foreach (string hostPath in Directory.GetFiles(CealingHostWatcher.Path, CealingHostWatcher.Filter))
|
foreach (string hostPath in Directory.GetFiles(CealingHostWatcher.Path, CealingHostWatcher.Filter))
|
||||||
|
Loading…
Reference in New Issue
Block a user