* Relax group type restrictions

* Optimize db read
This commit is contained in:
DHR60
2026-03-01 17:41:59 +08:00
committed by GitHub
parent 9f6237fb21
commit a71ebbd01c
9 changed files with 32 additions and 64 deletions
@@ -456,14 +456,7 @@ public class ProfilesViewModel : MyReactiveObject
var orderProfiles = SelectedProfiles?.OrderBy(t => t.Sort);
if (latest)
{
foreach (var profile in orderProfiles)
{
var item = await AppManager.Instance.GetProfileItem(profile.IndexId);
if (item is not null)
{
lstSelected.Add(item);
}
}
lstSelected.AddRange(await AppManager.Instance.GetProfileItemsOrderedByIndexIds(orderProfiles.Select(sp => sp?.IndexId)));
}
else
{