summaryrefslogtreecommitdiff
blob: 42dc4c8483fdd9f68eac606ce26c0152df73723f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/below/view/src/lib.rs b/below/view/src/lib.rs
index e9889fad..6f064a2e 100644
--- a/below/view/src/lib.rs
+++ b/below/view/src/lib.rs
@@ -225,7 +225,8 @@ pub fn set_active_screen(c: &mut Cursive, name: &str) {
                 .get_mut()
                 .screen_mut()
                 .unwrap()
-                .take_focus(cursive::direction::Direction::none());
+                .take_focus(cursive::direction::Direction::none())
+                .ok();
         },
     )
     .expect("failed to find main_view_screens");