mirror of
https://github.com/2dust/v2rayN.git
synced 2025-04-19 21:52:25 +00:00
Compare commits
1 commit
Author | SHA1 | Date | |
---|---|---|---|
![]() |
23eeb8ff55 |
2 changed files with 9 additions and 3 deletions
|
@ -548,8 +548,11 @@ public class MainWindowViewModel : MyReactiveObject
|
||||||
|
|
||||||
BlReloadEnabled = false;
|
BlReloadEnabled = false;
|
||||||
|
|
||||||
await LoadCore();
|
await Task.Run(async () =>
|
||||||
await SysProxyHandler.UpdateSysProxy(_config, false);
|
{
|
||||||
|
await LoadCore();
|
||||||
|
await SysProxyHandler.UpdateSysProxy(_config, false);
|
||||||
|
});
|
||||||
Locator.Current.GetService<StatusBarViewModel>()?.TestServerAvailability();
|
Locator.Current.GetService<StatusBarViewModel>()?.TestServerAvailability();
|
||||||
|
|
||||||
_updateView?.Invoke(EViewAction.DispatcherReload, null);
|
_updateView?.Invoke(EViewAction.DispatcherReload, null);
|
||||||
|
|
|
@ -318,7 +318,10 @@ public class StatusBarViewModel : MyReactiveObject
|
||||||
|
|
||||||
_updateView?.Invoke(EViewAction.DispatcherServerAvailability, ResUI.Speedtesting);
|
_updateView?.Invoke(EViewAction.DispatcherServerAvailability, ResUI.Speedtesting);
|
||||||
|
|
||||||
var msg = await (new UpdateService()).RunAvailabilityCheck();
|
var msg = await Task.Run(async () =>
|
||||||
|
{
|
||||||
|
return await (new UpdateService()).RunAvailabilityCheck();
|
||||||
|
});
|
||||||
|
|
||||||
NoticeHandler.Instance.SendMessageEx(msg);
|
NoticeHandler.Instance.SendMessageEx(msg);
|
||||||
_updateView?.Invoke(EViewAction.DispatcherServerAvailability, msg);
|
_updateView?.Invoke(EViewAction.DispatcherServerAvailability, msg);
|
||||||
|
|
Loading…
Reference in a new issue