mirror of
https://github.com/2dust/v2rayN.git
synced 2026-10-22 21:25:00 +03:00
@@ -709,18 +709,22 @@ public class ProfilesViewModel : MyReactiveObject
|
|||||||
|
|
||||||
public async Task ServerSpeedtest(ESpeedActionType actionType)
|
public async Task ServerSpeedtest(ESpeedActionType actionType)
|
||||||
{
|
{
|
||||||
if (actionType == ESpeedActionType.Mixedtest)
|
List<ProfileItem>? lstSelected;
|
||||||
|
if (actionType is ESpeedActionType.Mixedtest or ESpeedActionType.FastRealping)
|
||||||
{
|
{
|
||||||
SelectedProfiles = ProfileItems;
|
if (actionType == ESpeedActionType.FastRealping)
|
||||||
|
{
|
||||||
|
actionType = ESpeedActionType.Realping;
|
||||||
|
}
|
||||||
|
|
||||||
|
lstSelected = JsonUtils.Deserialize<List<ProfileItem>>(JsonUtils.Serialize(ProfileItems?.OrderBy(t => t.Sort)));
|
||||||
}
|
}
|
||||||
else if (actionType == ESpeedActionType.FastRealping)
|
else
|
||||||
{
|
{
|
||||||
SelectedProfiles = ProfileItems;
|
lstSelected = await GetProfileItems(false);
|
||||||
actionType = ESpeedActionType.Realping;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var lstSelected = await GetProfileItems(false);
|
if (lstSelected is null || lstSelected.Count <= 0)
|
||||||
if (lstSelected == null)
|
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user