From 64612b72305236f196957e8bd8ba63867044687e Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Wed, 20 Mar 2024 15:43:44 -0600 Subject: [PATCH] Adjust debouncer time to 250ms --- src/app.rs | 4 ++-- src/dialog.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app.rs b/src/app.rs index 395e60a..d5da42e 100644 --- a/src/app.rs +++ b/src/app.rs @@ -1577,8 +1577,8 @@ impl Application for App { let watcher_res = { let mut output = output.clone(); new_debouncer( - time::Duration::from_secs(1), - None, + time::Duration::from_millis(250), + Some(time::Duration::from_millis(250)), move |events_res: notify_debouncer_full::DebounceEventResult| { match events_res { Ok(mut events) => { diff --git a/src/dialog.rs b/src/dialog.rs index fdfb64d..956d98a 100644 --- a/src/dialog.rs +++ b/src/dialog.rs @@ -678,8 +678,8 @@ impl Application for App { let watcher_res = { let mut output = output.clone(); new_debouncer( - time::Duration::from_secs(1), - None, + time::Duration::from_millis(250), + Some(time::Duration::from_millis(250)), move |events_res: notify_debouncer_full::DebounceEventResult| { match events_res { Ok(mut events) => {