Make PreviewTrack.owner private

This commit is contained in:
Roman Kapustin
2018-06-02 22:06:45 +03:00
parent 5bb6757cbd
commit 9b69e1825d
4 changed files with 12 additions and 8 deletions

View File

@ -127,8 +127,7 @@ namespace osu.Game.Overlays
protected override void PopOut()
{
base.PopOut();
if (previewTrackManager.CurrentTrack?.Owner == this)
previewTrackManager.CurrentTrack?.Stop();
previewTrackManager.CurrentTrack?.Stop(this);
FadeEdgeEffectTo(0, WaveContainer.DISAPPEAR_DURATION, Easing.Out).OnComplete(_ => BeatmapSet = null);
}