Adjust debouncer time to 250ms
This commit is contained in:
parent
94a6261885
commit
64612b7230
2 changed files with 4 additions and 4 deletions
|
|
@ -1577,8 +1577,8 @@ impl Application for App {
|
||||||
let watcher_res = {
|
let watcher_res = {
|
||||||
let mut output = output.clone();
|
let mut output = output.clone();
|
||||||
new_debouncer(
|
new_debouncer(
|
||||||
time::Duration::from_secs(1),
|
time::Duration::from_millis(250),
|
||||||
None,
|
Some(time::Duration::from_millis(250)),
|
||||||
move |events_res: notify_debouncer_full::DebounceEventResult| {
|
move |events_res: notify_debouncer_full::DebounceEventResult| {
|
||||||
match events_res {
|
match events_res {
|
||||||
Ok(mut events) => {
|
Ok(mut events) => {
|
||||||
|
|
|
||||||
|
|
@ -678,8 +678,8 @@ impl Application for App {
|
||||||
let watcher_res = {
|
let watcher_res = {
|
||||||
let mut output = output.clone();
|
let mut output = output.clone();
|
||||||
new_debouncer(
|
new_debouncer(
|
||||||
time::Duration::from_secs(1),
|
time::Duration::from_millis(250),
|
||||||
None,
|
Some(time::Duration::from_millis(250)),
|
||||||
move |events_res: notify_debouncer_full::DebounceEventResult| {
|
move |events_res: notify_debouncer_full::DebounceEventResult| {
|
||||||
match events_res {
|
match events_res {
|
||||||
Ok(mut events) => {
|
Ok(mut events) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue