Merge pull request #78293 from Sauermann/fix-button-unpress

Fix ButtonGroup unpressing
This commit is contained in:
Rémi Verschelde 2023-06-16 16:52:01 +02:00
commit ce60395b4a
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -366,12 +366,10 @@ void BaseButton::shortcut_input(const Ref<InputEvent> &p_event) {
if (toggle_mode) {
status.pressed = !status.pressed;
if (status.pressed) {
_unpress_group();
if (button_group.is_valid()) {
button_group->emit_signal(SNAME("pressed"), this);
}
}
_toggled(status.pressed);
_pressed();