mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-19 01:29:37 +00:00
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:
parent
9a678da618
commit
5a05d7e849
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user