From de6186ddee9b2fc0fc4f3f0132a815edbc98888d Mon Sep 17 00:00:00 2001 From: Mossimo Date: Tue, 27 Apr 2021 00:59:24 +0800 Subject: [PATCH] chanegTaskName --- .../UI/ViewModels/Pages/ProxyScriptManagePageViewModel.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/ST.Client.Desktop/UI/ViewModels/Pages/ProxyScriptManagePageViewModel.cs b/src/ST.Client.Desktop/UI/ViewModels/Pages/ProxyScriptManagePageViewModel.cs index 08ba3645d..52b8868a7 100644 --- a/src/ST.Client.Desktop/UI/ViewModels/Pages/ProxyScriptManagePageViewModel.cs +++ b/src/ST.Client.Desktop/UI/ViewModels/Pages/ProxyScriptManagePageViewModel.cs @@ -22,13 +22,10 @@ namespace System.Application.UI.ViewModels get => AppResources.ScriptConfig; protected set { throw new NotImplementedException(); } } - bool IsCheck { get; set; } = true; - internal override void Activation() + internal override void ActivationOnFirst() { - if (ProxySettings.IsAutoCheckScriptUpdate && IsCheck) { - IsCheck = false; + if (ProxySettings.IsAutoCheckScriptUpdate) ProxyService.Current.CheckUpdate(); - } } private readonly ReadOnlyObservableCollection _ProxyScripts; public ReadOnlyObservableCollection ProxyScripts => _ProxyScripts;