|
@@ -315,6 +315,14 @@ void BaseButton::set_disabled(bool p_disabled) {
|
|
return;
|
|
return;
|
|
|
|
|
|
status.disabled = p_disabled;
|
|
status.disabled = p_disabled;
|
|
|
|
+ if (p_disabled) {
|
|
|
|
+ if (!toggle_mode) {
|
|
|
|
+ status.pressed = false;
|
|
|
|
+ }
|
|
|
|
+ status.press_attempt = false;
|
|
|
|
+ status.pressing_inside = false;
|
|
|
|
+ status.pressing_button = 0;
|
|
|
|
+ }
|
|
update();
|
|
update();
|
|
_change_notify("disabled");
|
|
_change_notify("disabled");
|
|
}
|
|
}
|