watch theme folder

This commit is contained in:
Dongdong Zhou 2022-06-08 21:49:37 +01:00
parent a646607044
commit 96c2882110
1 changed files with 3 additions and 0 deletions

View File

@ -287,6 +287,9 @@ pub fn new(
if let Some(path) = Config::settings_file() { if let Some(path) = Config::settings_file() {
let _ = watcher.watch(&path, notify::RecursiveMode::Recursive); let _ = watcher.watch(&path, notify::RecursiveMode::Recursive);
} }
if let Some(path) = Config::themes_folder() {
let _ = watcher.watch(&path, notify::RecursiveMode::Recursive);
}
if let Some(path) = KeyPressData::file() { if let Some(path) = KeyPressData::file() {
let _ = watcher.watch(&path, notify::RecursiveMode::Recursive); let _ = watcher.watch(&path, notify::RecursiveMode::Recursive);
} }