From 1ab017d4e201afcc9cd4cebda6370ecb478b3cfa Mon Sep 17 00:00:00 2001 From: Dan Balasescu Date: Sun, 2 Nov 2025 12:44:01 +0900 Subject: [PATCH] Fix quick play notification not setting "accepted" state --- .../OnlinePlay/Matchmaking/Queue/QueueController.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/osu.Game/Screens/OnlinePlay/Matchmaking/Queue/QueueController.cs b/osu.Game/Screens/OnlinePlay/Matchmaking/Queue/QueueController.cs index 353f5ac24f..f72f26f26e 100644 --- a/osu.Game/Screens/OnlinePlay/Matchmaking/Queue/QueueController.cs +++ b/osu.Game/Screens/OnlinePlay/Matchmaking/Queue/QueueController.cs @@ -119,7 +119,7 @@ namespace osu.Game.Screens.OnlinePlay.Matchmaking.Queue if (backgroundNotification != null) return; - notifications?.Post(backgroundNotification = new BackgroundQueueNotification()); + notifications?.Post(backgroundNotification = new BackgroundQueueNotification(this)); } private void closeNotifications() @@ -154,9 +154,16 @@ namespace osu.Game.Screens.OnlinePlay.Matchmaking.Queue [Resolved] private MultiplayerClient client { get; set; } = null!; + private readonly QueueController controller; + private Notification? foundNotification; private Sample? matchFoundSample; + public BackgroundQueueNotification(QueueController controller) + { + this.controller = controller; + } + [BackgroundDependencyLoader] private void load(AudioManager audio) { @@ -165,6 +172,8 @@ namespace osu.Game.Screens.OnlinePlay.Matchmaking.Queue CompletionClickAction = () => { client.MatchmakingAcceptInvitation().FireAndForget(); + controller.CurrentState.Value = ScreenQueue.MatchmakingScreenState.AcceptedWaitingForRoom; + performer?.PerformFromScreen(s => s.Push(new ScreenIntro())); Close(false);