Fix widget::button format
This commit is contained in:
parent
2cab4e6ddb
commit
713aa74f4c
1 changed files with 1 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue