aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authornc <[email protected]>2020-08-08 15:09:52 +0100
committernc <[email protected]>2020-08-08 15:09:52 +0100
commit92b4ecd7006f68f87dff3130b85c00dddacead85 (patch)
tree0d65e035aecd04fb2f8456f284dd9081fb1ccd0a /src
parent78685f7cdca15a191a5d086321368e475b0c2ab2 (diff)
try to unconditionally save after s.run() completes
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}