1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +08:00

Fix potentially incorrect states being applied to panels on first display.

This commit is contained in:
Dean Herbert 2017-03-17 14:56:12 +09:00
parent cd98af29c4
commit 2abcdbf4df
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49
2 changed files with 4 additions and 0 deletions

View File

@ -59,6 +59,8 @@ namespace osu.Game.Beatmaps.Drawables
protected override void ApplyState(PanelSelectedState last = PanelSelectedState.Hidden)
{
if (!IsLoaded) return;
base.ApplyState(last);
if (last == PanelSelectedState.Hidden && State != last)

View File

@ -51,6 +51,8 @@ namespace osu.Game.Beatmaps.Drawables
protected virtual void ApplyState(PanelSelectedState last = PanelSelectedState.Hidden)
{
if (!IsLoaded) return;
switch (state)
{
case PanelSelectedState.Hidden: