diff --git a/src/main/filesystem/watcher.js b/src/main/filesystem/watcher.js index b9fc3bda..154a5f83 100644 --- a/src/main/filesystem/watcher.js +++ b/src/main/filesystem/watcher.js @@ -134,7 +134,8 @@ class Watcher { // Watch a file or directory and return a unwatch function. watch (win, watchPath, type = 'dir'/* file or dir */) { - const usePolling = this._preferences.getItem('watcherUsePolling') + // TODO: Is it needed to set `watcherUsePolling` ? because macOS need to set to true. + const usePolling = isOsx ? true : this._preferences.getItem('watcherUsePolling') const id = getUniqueId() const watcher = chokidar.watch(watchPath, {