mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-17 05:44:00 +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)
|
||||
{
|
||||
if(!Enabled)
|
||||
return;
|
||||
if(button == 1)
|
||||
{
|
||||
if(isTogglable)
|
||||
|
Reference in New Issue
Block a user