summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJeff Zhao <jeff.no.zhao@gmail.com>2022-04-17 10:49:33 -0400
committerJeff Zhao <jeff.no.zhao@gmail.com>2022-04-17 10:49:33 -0400
commitaee94b2ad2c0b56246cf142dfdb7aba91c42cd04 (patch)
treedd8f13b678c26818fcb645e44b032a52e6768d48 /src
parent44395529484a0d3563c3c57f85374e571b93af58 (diff)
parent7832cc05994587dcd3b9c2dbb04f5d1c1df4b272 (diff)
Merge branch 'main' of github.com:kamiyaa/joshuto
Diffstat (limited to 'src')
-rw-r--r--src/context/app_context.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/context/app_context.rs b/src/context/app_context.rs
index 3f7975d..4427611 100644
--- a/src/context/app_context.rs
+++ b/src/context/app_context.rs
@@ -55,12 +55,7 @@ pub struct AppContext {
// user interface context; data which is input to both, the UI rendering and the app state
ui_context: UiContext,
// filesystem watcher to inform about changes in shown directories
- #[cfg(target_os = "linux")]
- watcher: notify::INotifyWatcher,
- #[cfg(target_os = "macos")]
- watcher: notify::FsEventWatcher,
- #[cfg(not(any(target_os = "linux", target_os = "macos")))]
- watcher: notify::NullWatcher,
+ watcher: notify::RecommendedWatcher,
// list of watched paths; seems not to be possible to get them from a notify::Watcher
watched_paths: HashSet<path::PathBuf>,
// the last preview area (or None if now preview shown) to check if a preview hook script needs