Skip to content

Commit

Permalink
Use notify::RecommendedWatcher to simplify code and support BSD platf…
Browse files Browse the repository at this point in the history
…orms (#165)

Along with notify-rs/notify#399 this fixes build on FreeBSD.
  • Loading branch information
valpackett committed Apr 15, 2022
1 parent f7d20c8 commit 7832cc0
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/context/app_context.rs
Expand Up @@ -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
Expand Down

0 comments on commit 7832cc0

Please sign in to comment.