aboutsummaryrefslogtreecommitdiff
path: root/src/app/impl_self.rs
diff options
context:
space:
mode:
authornc <[email protected]>2020-08-06 03:08:51 +0100
committernc <[email protected]>2020-08-06 03:08:51 +0100
commitee9be05579d87ca99f153d20995af3273385b564 (patch)
tree2760e96aea8d22ef9646918441c0ca7fb752b915 /src/app/impl_self.rs
parent20f7419c3d6d70ba8cfd996490020a5e1f2ad06d (diff)
Override Ctrl-C by disabling callback in Cursive
Thanks to @gyscos for the explanation in #22! Also removed extraneous code that's no longer needed.
Diffstat (limited to 'src/app/impl_self.rs')
-rw-r--r--src/app/impl_self.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/app/impl_self.rs b/src/app/impl_self.rs
index 325c53f..c2a24cf 100644
--- a/src/app/impl_self.rs
+++ b/src/app/impl_self.rs
@@ -24,7 +24,6 @@ impl App {
24 let (tx, rx) = channel(); 24 let (tx, rx) = channel();
25 let mut watcher = watcher(tx, Duration::from_secs(1)).unwrap(); 25 let mut watcher = watcher(tx, Duration::from_secs(1)).unwrap();
26 watcher.watch(utils::auto_habit_file(), RecursiveMode::Recursive); 26 watcher.watch(utils::auto_habit_file(), RecursiveMode::Recursive);
27
28 return App { 27 return App {
29 habits: vec![], 28 habits: vec![],
30 focus: 0, 29 focus: 0,