From 8f2fec0d80f5f90831769d68e7fdad5f679b3022 Mon Sep 17 00:00:00 2001 From: sshcomm Date: Wed, 29 Jan 2025 23:26:38 +0330 Subject: [PATCH] Update OptionSettingViewModel.cs --- v2rayN/ServiceLib/ViewModels/OptionSettingViewModel.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/v2rayN/ServiceLib/ViewModels/OptionSettingViewModel.cs b/v2rayN/ServiceLib/ViewModels/OptionSettingViewModel.cs index 955adcbe..5874e085 100644 --- a/v2rayN/ServiceLib/ViewModels/OptionSettingViewModel.cs +++ b/v2rayN/ServiceLib/ViewModels/OptionSettingViewModel.cs @@ -1,4 +1,4 @@ -using ReactiveUI; +using ReactiveUI; using ReactiveUI.Fody.Helpers; using System.Reactive; @@ -58,6 +58,7 @@ namespace ServiceLib.ViewModels [Reactive] public bool EnableDragDropSort { get; set; } [Reactive] public bool DoubleClick2Activate { get; set; } [Reactive] public int AutoUpdateInterval { get; set; } + [Reactive] public int AutoUpdateCoreInterval { get; set; } [Reactive] public int TrayMenuServersLimit { get; set; } [Reactive] public string CurrentFontFamily { get; set; } [Reactive] public int SpeedTestTimeout { get; set; } @@ -174,6 +175,7 @@ namespace ServiceLib.ViewModels EnableDragDropSort = _config.UiItem.EnableDragDropSort; DoubleClick2Activate = _config.UiItem.DoubleClick2Activate; AutoUpdateInterval = _config.GuiItem.AutoUpdateInterval; + AutoUpdateCoreInterval = _config.GuiItem.AutoUpdateCoreInterval; TrayMenuServersLimit = _config.GuiItem.TrayMenuServersLimit; CurrentFontFamily = _config.UiItem.CurrentFontFamily; SpeedTestTimeout = _config.SpeedTestItem.SpeedTestTimeout; @@ -327,6 +329,7 @@ namespace ServiceLib.ViewModels _config.UiItem.AutoHideStartup = AutoHideStartup; _config.UiItem.Hide2TrayWhenClose = Hide2TrayWhenClose; _config.GuiItem.AutoUpdateInterval = AutoUpdateInterval; + _config.GuiItem.AutoUpdateCoreInterval = AutoUpdateCoreInterval; _config.UiItem.EnableDragDropSort = EnableDragDropSort; _config.UiItem.DoubleClick2Activate = DoubleClick2Activate; _config.GuiItem.TrayMenuServersLimit = TrayMenuServersLimit; @@ -415,4 +418,4 @@ namespace ServiceLib.ViewModels await Task.CompletedTask; } } -} \ No newline at end of file +}