1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 22:35:23 +08:00

Fix potential null reference while hiding toolbar

This commit is contained in:
Salman Ahmed 2020-04-25 09:45:11 +03:00
parent fc706c19d7
commit 37cc1ed5a2
No known key found for this signature in database
GPG Key ID: ED81FD33FD9B58BC

View File

@ -148,7 +148,7 @@ namespace osu.Game.Overlays.Toolbar
protected override void PopOut() protected override void PopOut()
{ {
userButton?.StateContainer.Hide(); userButton.StateContainer?.Hide();
this.MoveToY(-DrawSize.Y, transition_time, Easing.OutQuint); this.MoveToY(-DrawSize.Y, transition_time, Easing.OutQuint);
this.FadeOut(transition_time); this.FadeOut(transition_time);