Calling `activate!` does not instantly trigger emission of signal `clicked` for `Button`, and `ToggleButton`
Clemapfel opened this issue · 1 comments
Clemapfel commented
When activate!
is called, clicked
will only be emitted after the "button clicked" animation is complete, as opposed to instantly.
Confirmed to be caused by
- https://github.com/Clemapfel/mousetrap/blob/main/src/button.cpp#L22
- https://github.com/Clemapfel/mousetrap/blob/main/src/toggle_button.cpp#L24
being commented out.
This will be fixed with the next version, until then simply use emit_signal_clicked
instead of activate!
.
Clemapfel commented
Fixed in v0.3.0