From 67bd2fefe334d8dae20afc8b378e410faca61028 Mon Sep 17 00:00:00 2001 From: Federico Terzi Date: Thu, 13 Aug 2020 19:16:09 +0200 Subject: [PATCH] Avoid reloading espanso with hidden files. Fix #393 --- src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 1a7accb..bb6b47e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -566,8 +566,9 @@ fn watcher_background(sender: Sender) { }; 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