1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 12:33:01 +08:00

Fix preview track persisting to play after leaving multi/playlists room

This commit is contained in:
Joseph Madamba 2024-07-09 14:36:24 -07:00
parent 13c8370823
commit 8c81ba3357

View File

@ -80,6 +80,9 @@ namespace osu.Game.Screens.OnlinePlay.Match
[Resolved(canBeNull: true)]
protected OnlinePlayScreen ParentScreen { get; private set; }
[Resolved]
private PreviewTrackManager previewTrackManager { get; set; } = null!;
[Cached]
private readonly OnlinePlayBeatmapAvailabilityTracker beatmapAvailabilityTracker = new OnlinePlayBeatmapAvailabilityTracker();
@ -483,6 +486,8 @@ namespace osu.Game.Screens.OnlinePlay.Match
{
UserModsSelectOverlay.Hide();
endHandlingTrack();
previewTrackManager.StopAnyPlaying(this);
}
private void endHandlingTrack()