Skip to content

Commit

Permalink
Fix panic at Option::unwrap in App::accessibility (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp-M authored Oct 19, 2023
1 parent 8431894 commit 8a5825d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ where

pub fn accessibility(&mut self) -> TreeUpdate {
let mut update = TreeUpdate::default();
self.ensure_root();
let root_pod = self.root_pod.as_mut().unwrap();
let mut window_node_builder = accesskit::NodeBuilder::new(accesskit::Role::Window);
window_node_builder.set_name("xilem window");
Expand Down

0 comments on commit 8a5825d

Please sign in to comment.