Skip to content

Commit bbf1b7d

Browse files
Merge pull request #331 from Unity-Technologies/bugfixes/andrewm/invisible_button_activation
Fix for the menu button being able to be closed
2 parents e6c1c0e + 640bf46 commit bbf1b7d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Menus/ToolsMenu/ToolsMenuButton/ToolsMenuButton.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,10 @@ void OnBackgroundButtonClick()
519519

520520
void OnSecondaryButtonClicked()
521521
{
522+
if (!implementsSecondaryButton)
523+
{
524+
return;
525+
}
522526
this.RestartCoroutine(ref m_VisibilityCoroutine, AnimateHideAndDestroy());
523527
closeButton();
524528
ActionButtonHoverExit();

0 commit comments

Comments
 (0)