Fix checkbox dropdown not saving choices made by clicking the rows
The fix is to simply call the state change callback even if the state change was invoked programmatically.
This commit is contained in:
parent
c4cb783772
commit
8be7de39f9
1 changed files with 3 additions and 3 deletions
|
@ -119,6 +119,9 @@ void toggle_button::set_value(const unsigned selected)
|
|||
state_num_ = selected % num_states();
|
||||
set_is_dirty(true);
|
||||
|
||||
if(callback_state_change_) {
|
||||
callback_state_change_(*this);
|
||||
}
|
||||
}
|
||||
|
||||
void toggle_button::set_retval(const int retval)
|
||||
|
@ -172,9 +175,6 @@ void toggle_button::signal_handler_left_button_click(const event::ui_event event
|
|||
|
||||
fire(event::NOTIFY_MODIFIED, *this, nullptr);
|
||||
|
||||
if(callback_state_change_) {
|
||||
callback_state_change_(*this);
|
||||
}
|
||||
handled = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue