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