Simplify is_picked expression in pane_grid
This commit is contained in:
parent
be65a847b0
commit
6618c6bdd9
1 changed files with 1 additions and 5 deletions
|
|
@ -458,11 +458,7 @@ where
|
||||||
.iter_mut()
|
.iter_mut()
|
||||||
.zip(layout.children())
|
.zip(layout.children())
|
||||||
.map(|((pane, content), layout)| {
|
.map(|((pane, content), layout)| {
|
||||||
let is_picked = if let Some(picked_pane) = picked_pane {
|
let is_picked = picked_pane == Some(*pane);
|
||||||
picked_pane == *pane
|
|
||||||
} else {
|
|
||||||
false
|
|
||||||
};
|
|
||||||
|
|
||||||
content.on_event(
|
content.on_event(
|
||||||
event.clone(),
|
event.clone(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue