mirror of
https://github.com/2dust/v2rayN.git
synced 2025-08-29 14:26:20 +00:00
quickselect
This commit is contained in:
parent
32b1a83b8e
commit
325d91621c
1 changed files with 4 additions and 0 deletions
|
@ -714,6 +714,7 @@ namespace v2rayN.ViewModels
|
||||||
{
|
{
|
||||||
ite.delay = it.E;
|
ite.delay = it.E;
|
||||||
ite.delayVal = $"{it.E.ToString()} {Global.DelayUnit}";
|
ite.delayVal = $"{it.E.ToString()} {Global.DelayUnit}";
|
||||||
|
ProfileExHandler.Instance.SetTestDelay(it.indexId, it.E.ToString());
|
||||||
}
|
}
|
||||||
_profileItems.Replace(ite, Utils.DeepCopy(ite));
|
_profileItems.Replace(ite, Utils.DeepCopy(ite));
|
||||||
}
|
}
|
||||||
|
@ -727,10 +728,13 @@ namespace v2rayN.ViewModels
|
||||||
{
|
{
|
||||||
ite.delay = int.Parse(it.getDelay(2));
|
ite.delay = int.Parse(it.getDelay(2));
|
||||||
ite.delayVal = $"{it.getDelay(2)} {Global.DelayUnit}";
|
ite.delayVal = $"{it.getDelay(2)} {Global.DelayUnit}";
|
||||||
|
ProfileExHandler.Instance.SetTestDelay(it.indexId, it.getDelay(2));
|
||||||
}
|
}
|
||||||
_profileItems.Replace(ite, Utils.DeepCopy(ite));
|
_profileItems.Replace(ite, Utils.DeepCopy(ite));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
SortServer(EServerColName.delayVal.ToString());
|
||||||
|
SetDefaultServer(_profileItems.First().indexId);
|
||||||
_noticeHandler?.SendMessage(ResUI.OperationSuccess, true);
|
_noticeHandler?.SendMessage(ResUI.OperationSuccess, true);
|
||||||
_noticeHandler?.Enqueue(ResUI.OperationSuccess);
|
_noticeHandler?.Enqueue(ResUI.OperationSuccess);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue