GUI2/Drop Down Menu: fixed row toggle callback not firing when selecting row

Regression introduced in 775970f920 since set_value_bool
no longer automatically fired the event.
This commit is contained in:
Charles Dang 2018-01-24 10:39:47 +11:00
parent 728204665c
commit e432ec3358

View file

@ -90,7 +90,7 @@ namespace
*/
grid* row_grid = list.get_row_grid(list.get_selected_row());
if(toggle_button* checkbox = find_widget<toggle_button>(row_grid, "checkbox", false, false)) {
checkbox->set_value_bool(!checkbox->get_value_bool());
checkbox->set_value_bool(!checkbox->get_value_bool(), true);
}
}