diff options
author | Jeff Zhao <jeff.no.zhao@gmail.com> | 2022-04-17 10:49:33 -0400 |
---|---|---|
committer | Jeff Zhao <jeff.no.zhao@gmail.com> | 2022-04-17 10:49:33 -0400 |
commit | aee94b2ad2c0b56246cf142dfdb7aba91c42cd04 (patch) | |
tree | dd8f13b678c26818fcb645e44b032a52e6768d48 /src | |
parent | 44395529484a0d3563c3c57f85374e571b93af58 (diff) | |
parent | 7832cc05994587dcd3b9c2dbb04f5d1c1df4b272 (diff) |
Merge branch 'main' of github.com:kamiyaa/joshuto
Diffstat (limited to 'src')
-rw-r--r-- | src/context/app_context.rs | 7 |
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 |