Merge pull request #11618 from tagcup/button_toggle
Fix toggle mode of BaseButton. [ci skip]
This commit is contained in:
commit
78423320d7
1 changed files with 3 additions and 1 deletions
|
@ -39,7 +39,9 @@ void BaseButton::_unpress_group() {
|
|||
if (!button_group.is_valid())
|
||||
return;
|
||||
|
||||
status.pressed = false;
|
||||
if (toggle_mode) {
|
||||
status.pressed = true;
|
||||
}
|
||||
|
||||
for (Set<BaseButton *>::Element *E = button_group->buttons.front(); E; E = E->next()) {
|
||||
if (E->get() == this)
|
||||
|
|
Loading…
Reference in a new issue