diff options
Diffstat (limited to 'src/app/mod.rs')
-rw-r--r-- | src/app/mod.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/app/mod.rs b/src/app/mod.rs index 2aecb33..bce6e79 100644 --- a/src/app/mod.rs +++ b/src/app/mod.rs | |||
@@ -5,6 +5,8 @@ use notify::{DebouncedEvent, RecommendedWatcher}; | |||
5 | 5 | ||
6 | use crate::habit::HabitWrapper; | 6 | use crate::habit::HabitWrapper; |
7 | 7 | ||
8 | use std::sync::{RwLock, Arc}; | ||
9 | |||
8 | mod impl_self; | 10 | mod impl_self; |
9 | mod impl_view; | 11 | mod impl_view; |
10 | mod message; | 12 | mod message; |
@@ -20,7 +22,7 @@ pub struct App { | |||
20 | file_event_recv: Receiver<DebouncedEvent>, | 22 | file_event_recv: Receiver<DebouncedEvent>, |
21 | focus: usize, | 23 | focus: usize, |
22 | view_month_offset: u32, | 24 | view_month_offset: u32, |
23 | message: Message, | 25 | pub message: Arc<RwLock<Message>>, |
24 | } | 26 | } |
25 | 27 | ||
26 | impl Default for App { | 28 | impl Default for App { |