1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-18 06:29:52 +08:00

Fix unreliable async loading due to incorrect single-child assumption

See https://github.com/ppy/osu/actions/runs/21807684945/job/62913744850.
This commit is contained in:
Dean Herbert
2026-02-09 10:04:23 +09:00
Unverified
parent 0a4497db3c
commit bb83f3dcf2
@@ -173,7 +173,9 @@ namespace osu.Game.Overlays.Dashboard.Friends
listLoadCancellation?.Cancel();
var cancellationSource = listLoadCancellation = new CancellationTokenSource();
FriendsList? currentList = listContainer.SingleOrDefault();
// There may be more than one active list in the container due to the delayed fade out.
FriendsList? currentList = listContainer.SingleOrDefault(d => d.LifetimeEnd == double.MaxValue);
FriendsList newList = new FriendsList(userListToolbar.DisplayStyle.Value, apiFriends.Select(f => f.TargetUser!).ToArray())
{
OnlineStream = { BindTarget = streamControl.Current },