Compare commits

..

No commits in common. "214a09bc48537c62d971d97c785de326abc1b5f1" and "0f4031f4451df388634ac9d856acae37cc500f2f" have entirely different histories.

3 changed files with 17 additions and 7 deletions

View file

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

View file

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

View file

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