1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 06:47:24 +08:00

Removed the reopening of the playlist overlay

This commit is contained in:
MrTheMake 2017-07-14 12:37:56 +02:00
parent 00a622da1a
commit a95339dc1d

View File

@ -59,8 +59,6 @@ namespace osu.Game.Overlays
private Container dragContainer;
private Container playerContainer;
private bool showPlaylistOnceAvailable;
public MusicController()
{
Width = 400;
@ -233,16 +231,8 @@ namespace osu.Game.Overlays
nextButton.Enabled.Value = !disabled;
playlistButton.Enabled.Value = !disabled;
// Toggle the playlist's visibility if required
if (disabled)
{
showPlaylistOnceAvailable = playlist.State == Visibility.Visible;
if (showPlaylistOnceAvailable)
playlist.Hide();
}
else if (showPlaylistOnceAvailable && State == Visibility.Visible)
playlist.Show();
playlist.Hide();
}
protected override void UpdateAfterChildren()
@ -401,9 +391,6 @@ namespace osu.Game.Overlays
FadeIn(transition_length, EasingTypes.OutQuint);
dragContainer.ScaleTo(1, transition_length, EasingTypes.OutElastic);
if (Alpha == 0)
showPlaylistOnceAvailable = false;
}
protected override void PopOut()