Avoid reloading espanso with hidden files. Fix #393

This commit is contained in:
Federico Terzi 2020-08-13 19:16:09 +02:00
parent 9383264952
commit 67bd2fefe3

View File

@ -566,8 +566,9 @@ fn watcher_background(sender: Sender<Event>) {
};
if let Some(path) = path {
if path.extension().unwrap_or_default() == "yml" {
// Only load yml files
if path.extension().unwrap_or_default() == "yml" &&
!path.file_name().unwrap_or_default().to_string_lossy().starts_with("."){
// Only load non-hidden yml files
true
} else {
false