From d76b12d448d589e0196838bb82521bd647475ae3 Mon Sep 17 00:00:00 2001 From: Philipp Mildenberger Date: Wed, 18 Oct 2023 14:29:40 +0200 Subject: [PATCH] Fix panic at Option::unwrap in App::accessibility --- src/app.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app.rs b/src/app.rs index b177059b5..1e9d55751 100644 --- a/src/app.rs +++ b/src/app.rs @@ -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");