mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 09:32:55 +08:00
Fix cancel button animating when entering a dialog (#6825)
Fix cancel button animating when entering a dialog Co-authored-by: Dean Herbert <pe@ppy.sh>
This commit is contained in:
commit
76722534ec
@ -241,7 +241,7 @@ namespace osu.Game.Overlays.Dialog
|
||||
|
||||
protected override void PopOut()
|
||||
{
|
||||
if (!actionInvoked)
|
||||
if (!actionInvoked && content.IsPresent)
|
||||
// In the case a user did not choose an action before a hide was triggered, press the last button.
|
||||
// This is presumed to always be a sane default "cancel" action.
|
||||
buttonsContainer.Last().Click();
|
||||
|
Loading…
Reference in New Issue
Block a user