Compare commits

...

2 commits

Author SHA1 Message Date
2dust
214a09bc48 up 7.19.4
Some checks failed
release Linux / build (Release) (push) Has been cancelled
release macOS / build (Release) (push) Has been cancelled
release Windows desktop (Avalonia UI) / build (Release) (push) Has been cancelled
release Windows / build (Release) (push) Has been cancelled
release Linux / rpm (push) Has been cancelled
2026-03-13 10:44:20 +08:00
2dust
e6af9ab342 Fix
https://github.com/2dust/v2rayN/issues/8916
2026-03-13 10:36:58 +08:00
3 changed files with 7 additions and 17 deletions

View file

@ -1,7 +1,7 @@
<Project> <Project>
<PropertyGroup> <PropertyGroup>
<Version>7.19.3</Version> <Version>7.19.4</Version>
</PropertyGroup> </PropertyGroup>
<PropertyGroup> <PropertyGroup>

View file

@ -188,14 +188,9 @@ public class ProfilesSelectViewModel : MyReactiveObject
{ {
SubItems.Add(item); SubItems.Add(item);
} }
if (_subIndexId != null && SubItems.FirstOrDefault(t => t.Id == _subIndexId) != null) SelectedSub = (_config.SubIndexId.IsNotEmpty()
{ ? SubItems.FirstOrDefault(t => t.Id == _config.SubIndexId)
SelectedSub = SubItems.FirstOrDefault(t => t.Id == _subIndexId); : null) ?? SubItems.LastOrDefault();
}
else
{
SelectedSub = SubItems.First();
}
} }
private async Task<List<ProfileItemModel>?> GetProfileItemsEx(string subid, string filter) private async Task<List<ProfileItemModel>?> GetProfileItemsEx(string subid, string filter)

View file

@ -391,14 +391,9 @@ public class ProfilesViewModel : MyReactiveObject
{ {
SubItems.Add(item); SubItems.Add(item);
} }
if (_config.SubIndexId != null && SubItems.FirstOrDefault(t => t.Id == _config.SubIndexId) != null) SelectedSub = (_config.SubIndexId.IsNotEmpty()
{ ? SubItems.FirstOrDefault(t => t.Id == _config.SubIndexId)
SelectedSub = SubItems.FirstOrDefault(t => t.Id == _config.SubIndexId); : null) ?? SubItems.LastOrDefault();
}
else
{
SelectedSub = SubItems.First();
}
} }
private async Task<List<ProfileItemModel>?> GetProfileItemsEx(string subid, string filter) private async Task<List<ProfileItemModel>?> GetProfileItemsEx(string subid, string filter)