make file reloading faster
This commit is contained in:
parent
16db5c8664
commit
b349c003e8
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ fn run_filewatch_thread<P: AsRef<Path>>(
|
|||
evt_send: glib::Sender<app::EwwCommand>,
|
||||
) -> Result<hotwatch::Hotwatch> {
|
||||
log::info!("Initializing config file watcher");
|
||||
let mut hotwatch = hotwatch::Hotwatch::new()?;
|
||||
let mut hotwatch = hotwatch::Hotwatch::new_with_custom_delay(std::time::Duration::from_millis(500))?;
|
||||
|
||||
let config_file_change_send = evt_send.clone();
|
||||
hotwatch.watch_file_changes(config_file_path, move |path| {
|
||||
|
|
Loading…
Add table
Reference in a new issue