mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-18 06:01:19 +02:00
fix being able to toggle disabled buttons (fixes save browser issue with this)
This commit is contained in:
@@ -176,6 +176,8 @@ void Button::OnMouseUnclick(int x, int y, unsigned int button)
|
|||||||
|
|
||||||
void Button::OnMouseClick(int x, int y, unsigned int button)
|
void Button::OnMouseClick(int x, int y, unsigned int button)
|
||||||
{
|
{
|
||||||
|
if(!Enabled)
|
||||||
|
return;
|
||||||
if(button == 1)
|
if(button == 1)
|
||||||
{
|
{
|
||||||
if(isTogglable)
|
if(isTogglable)
|
||||||
|
Reference in New Issue
Block a user