From bb83f3dcf260b13f0fd9e44d9e2ddb23c8be3036 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Mon, 9 Feb 2026 10:04:23 +0900 Subject: [PATCH] Fix unreliable async loading due to incorrect single-child assumption See https://github.com/ppy/osu/actions/runs/21807684945/job/62913744850. --- osu.Game/Overlays/Dashboard/Friends/FriendDisplay.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/osu.Game/Overlays/Dashboard/Friends/FriendDisplay.cs b/osu.Game/Overlays/Dashboard/Friends/FriendDisplay.cs index 0f5ae4d44f..4088233013 100644 --- a/osu.Game/Overlays/Dashboard/Friends/FriendDisplay.cs +++ b/osu.Game/Overlays/Dashboard/Friends/FriendDisplay.cs @@ -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 },