1.1.2 -> 1.1.3 第8次更新

This commit is contained in:
Space Time 2024-10-19 21:40:38 +08:00
parent cfe4108590
commit f54e470874

View File

@ -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))