Skip to content

Commit

Permalink
Fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
PoignardAzur committed Aug 30, 2024
1 parent bc1da54 commit d0aa999
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion masonry/src/passes/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ pub(crate) fn run_update_focus_pass(root: &mut RenderRoot, root_state: &mut Widg
// If the focused widget ends up disabled or removed, we set
// the focused id to None
if let Some(id) = root.state.next_focused_widget {
if !root.widget_arena.has(id) || root.widget_arena.get_state_mut(id).item.is_disabled() {
if !root.widget_arena.has(id) || root.widget_arena.get_state_mut(id).item.is_disabled {
root.state.next_focused_widget = None;
}
}
Expand Down

0 comments on commit d0aa999

Please sign in to comment.