aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/main.rs b/src/main.rs
index 1d9efb4..14ddf03 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -62,11 +62,6 @@ fn main() {
62 s.set_theme(theme::theme_gen()); 62 s.set_theme(theme::theme_gen());
63 s.run(); 63 s.run();
64 64
65 let app = std::rc::Rc::try_unwrap(s.find_name::<NamedView<App>>("Main").unwrap() 65 s.call_on_name("Main", |app: &mut App| app.save_state());
66 .get_mut()
67 .into_owner()
68 .into_owner()).ok().unwrap().into_inner();
69 app.save_state();
70
71 } 66 }
72} 67}