mirror of
https://github.com/ppy/osu
synced 2024-12-12 09:58:22 +00:00
Ensure previews stop playing when they are removed from the draw hierarchy
This commit is contained in:
parent
64c32f5715
commit
652f273961
@ -106,6 +106,8 @@ namespace osu.Game.Overlays.Direct
|
||||
beatmaps.BeatmapDownloadBegan += attachDownload;
|
||||
}
|
||||
|
||||
public override bool DisposeOnDeathRemoval => true;
|
||||
|
||||
protected override void Dispose(bool isDisposing)
|
||||
{
|
||||
base.Dispose(isDisposing);
|
||||
|
@ -145,6 +145,12 @@ namespace osu.Game.Overlays.Direct
|
||||
}
|
||||
}
|
||||
|
||||
protected override void Dispose(bool isDisposing)
|
||||
{
|
||||
base.Dispose(isDisposing);
|
||||
Playing.Value = false;
|
||||
}
|
||||
|
||||
private TrackLoader trackLoader;
|
||||
private AudioManager audio;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user