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:
parent
cd98af29c4
commit
2abcdbf4df
@ -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)
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user