diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/main.rs b/src/main.rs index bec4536..cb3393b 100644 --- a/src/main.rs +++ b/src/main.rs | |||
@@ -77,13 +77,10 @@ fn main() { | |||
77 | walking.insert_entry(NaiveDate::from_ymd(2020, 3, 14), false.into()); | 77 | walking.insert_entry(NaiveDate::from_ymd(2020, 3, 14), false.into()); |
78 | walking.insert_entry(NaiveDate::from_ymd(2020, 3, 15), true.into()); | 78 | walking.insert_entry(NaiveDate::from_ymd(2020, 3, 15), true.into()); |
79 | 79 | ||
80 | s.add_global_callback('q', |a| a.quit()); | 80 | let mut app = App::new(); |
81 | let app = App::new() | 81 | app.add_habit(Box::new(gymming)); |
82 | .add_habit(Box::new(gymming)) | 82 | app.add_habit(Box::new(reading)); |
83 | .add_habit(Box::new(reading)) | 83 | app.add_habit(Box::new(walking)); |
84 | .add_habit(Box::new(walking)) | ||
85 | .set_mode(ViewMode::Month); | ||
86 | |||
87 | s.add_layer(app); | 84 | s.add_layer(app); |
88 | 85 | ||
89 | s.set_theme(theme::theme_gen()); | 86 | s.set_theme(theme::theme_gen()); |