mirror of
https://github.com/2dust/v2rayN.git
synced 2026-04-16 04:25:45 +00:00
Bug fix
Some checks are pending
release Linux / build (Release) (push) Waiting to run
release Linux / deb (push) Blocked by required conditions
release Linux / rpm (push) Blocked by required conditions
release macOS / build (Release) (push) Waiting to run
release Windows desktop (Avalonia UI) / build (Release) (push) Waiting to run
release Windows / build (Release) (push) Waiting to run
Some checks are pending
release Linux / build (Release) (push) Waiting to run
release Linux / deb (push) Blocked by required conditions
release Linux / rpm (push) Blocked by required conditions
release macOS / build (Release) (push) Waiting to run
release Windows desktop (Avalonia UI) / build (Release) (push) Waiting to run
release Windows / build (Release) (push) Waiting to run
https://github.com/2dust/v2rayN/issues/9016
This commit is contained in:
parent
1090afd774
commit
2caf8ea14f
1 changed files with 11 additions and 7 deletions
|
|
@ -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)
|
||||||
}
|
|
||||||
else if (actionType == ESpeedActionType.FastRealping)
|
|
||||||
{
|
{
|
||||||
SelectedProfiles = ProfileItems;
|
|
||||||
actionType = ESpeedActionType.Realping;
|
actionType = ESpeedActionType.Realping;
|
||||||
}
|
}
|
||||||
|
|
||||||
var lstSelected = await GetProfileItems(false);
|
lstSelected = JsonUtils.Deserialize<List<ProfileItem>>(JsonUtils.Serialize(ProfileItems?.OrderBy(t => t.Sort)));
|
||||||
if (lstSelected == null)
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
lstSelected = await GetProfileItems(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (lstSelected is null || lstSelected.Count <= 0)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue