mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 14:12:54 +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)
|
protected override void ApplyState(PanelSelectedState last = PanelSelectedState.Hidden)
|
||||||
{
|
{
|
||||||
|
if (!IsLoaded) return;
|
||||||
|
|
||||||
base.ApplyState(last);
|
base.ApplyState(last);
|
||||||
|
|
||||||
if (last == PanelSelectedState.Hidden && State != last)
|
if (last == PanelSelectedState.Hidden && State != last)
|
||||||
|
@ -51,6 +51,8 @@ namespace osu.Game.Beatmaps.Drawables
|
|||||||
|
|
||||||
protected virtual void ApplyState(PanelSelectedState last = PanelSelectedState.Hidden)
|
protected virtual void ApplyState(PanelSelectedState last = PanelSelectedState.Hidden)
|
||||||
{
|
{
|
||||||
|
if (!IsLoaded) return;
|
||||||
|
|
||||||
switch (state)
|
switch (state)
|
||||||
{
|
{
|
||||||
case PanelSelectedState.Hidden:
|
case PanelSelectedState.Hidden:
|
||||||
|
Loading…
Reference in New Issue
Block a user