Fix widget::button format

This commit is contained in:
Héctor Ramón Jiménez 2024-12-02 19:58:06 +01:00
parent 2cab4e6ddb
commit 713aa74f4c
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -315,8 +315,7 @@ where
}
Event::Mouse(mouse::Event::ButtonReleased(mouse::Button::Left))
| Event::Touch(touch::Event::FingerLifted { .. }) => {
if let Some(on_press) = &self.on_press
{
if let Some(on_press) = &self.on_press {
let state = tree.state.downcast_mut::<State>();
if state.is_pressed {