mirror of
https://github.com/2dust/v2rayN.git
synced 2026-03-17 13:53:02 +00:00
parent
0f4031f445
commit
e6af9ab342
2 changed files with 6 additions and 16 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue