1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-17 02:22:35 +08:00

Fix quick play notification not setting "accepted" state

This commit is contained in:
Dan Balasescu
2025-11-02 12:44:01 +09:00
Unverified
parent 2413e98108
commit 1ab017d4e2
@@ -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);