From 325d91621ca63f508e9a4bb27e89fe45c17c9195 Mon Sep 17 00:00:00 2001 From: rexmyl Date: Fri, 2 Jun 2023 03:02:13 +0800 Subject: [PATCH] quickselect --- v2rayN/v2rayN/ViewModels/MainWindowViewModel.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/v2rayN/v2rayN/ViewModels/MainWindowViewModel.cs b/v2rayN/v2rayN/ViewModels/MainWindowViewModel.cs index da4b2e41..d63fdc00 100644 --- a/v2rayN/v2rayN/ViewModels/MainWindowViewModel.cs +++ b/v2rayN/v2rayN/ViewModels/MainWindowViewModel.cs @@ -714,6 +714,7 @@ namespace v2rayN.ViewModels { ite.delay = it.E; ite.delayVal = $"{it.E.ToString()} {Global.DelayUnit}"; + ProfileExHandler.Instance.SetTestDelay(it.indexId, it.E.ToString()); } _profileItems.Replace(ite, Utils.DeepCopy(ite)); } @@ -727,10 +728,13 @@ namespace v2rayN.ViewModels { ite.delay = int.Parse(it.getDelay(2)); ite.delayVal = $"{it.getDelay(2)} {Global.DelayUnit}"; + ProfileExHandler.Instance.SetTestDelay(it.indexId, it.getDelay(2)); } _profileItems.Replace(ite, Utils.DeepCopy(ite)); } } + SortServer(EServerColName.delayVal.ToString()); + SetDefaultServer(_profileItems.First().indexId); _noticeHandler?.SendMessage(ResUI.OperationSuccess, true); _noticeHandler?.Enqueue(ResUI.OperationSuccess); }