GUI2/Toggle Button: fixed modified events being fired twice on click

set_value fires the event, so there's no need for the click handler to do the same.
This commit is contained in:
Charles Dang 2017-09-06 18:56:18 +11:00
parent 9a678da618
commit 5a05d7e849

View File

@ -170,8 +170,6 @@ void toggle_button::signal_handler_left_button_click(const event::ui_event event
set_value(get_value() + 1);
fire(event::NOTIFY_MODIFIED, *this, nullptr);
handled = true;
}