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:
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user