diff --git a/cosmic-config/src/lib.rs b/cosmic-config/src/lib.rs index 7a392fde..1a3ec66a 100644 --- a/cosmic-config/src/lib.rs +++ b/cosmic-config/src/lib.rs @@ -1,7 +1,7 @@ //! Integrations for cosmic-config — the cosmic configuration system. use notify::{ - event::{EventKind, ModifyKind}, + event::{EventKind, ModifyKind, RenameMode}, RecommendedWatcher, Watcher, }; use serde::{de::DeserializeOwned, Serialize}; @@ -261,7 +261,9 @@ impl Config { match event_res { Ok(event) => { match &event.kind { - EventKind::Access(_) | EventKind::Modify(ModifyKind::Metadata(_)) => { + EventKind::Access(_) + | EventKind::Modify(ModifyKind::Metadata(_)) + | EventKind::Modify(ModifyKind::Name(RenameMode::Both)) => { // Data not mutated return; }