fix being able to toggle disabled buttons (fixes save browser issue with this)
This commit is contained in:
parent
38573cc30e
commit
ad951eb9af
@ -176,6 +176,8 @@ void Button::OnMouseUnclick(int x, int y, unsigned int button)
|
||||
|
||||
void Button::OnMouseClick(int x, int y, unsigned int button)
|
||||
{
|
||||
if(!Enabled)
|
||||
return;
|
||||
if(button == 1)
|
||||
{
|
||||
if(isTogglable)
|
||||
|
Reference in New Issue
Block a user