Merge pull request #78293 from Sauermann/fix-button-unpress
Fix ButtonGroup unpressing
This commit is contained in:
commit
ce60395b4a
1 changed files with 3 additions and 5 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue