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:
parent
13c8370823
commit
8c81ba3357
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user