added start / stop events; starting / stopping folder watcher.

This commit is contained in:
Alberto Miranda
2017-03-22 23:21:07 -03:00
parent a6c53d06d2
commit 7f817241ed
5 changed files with 53 additions and 22 deletions

View File

@@ -136,7 +136,11 @@ function delayedInit (state) {
announcement.init()
dock.init()
updater.init()
folderWatcher.init()
ipc.setModule('folderWatcher', folderWatcher)
if (folderWatcher.isEnabled()) {
folderWatcher.start()
}
if (process.platform === 'win32') {
const userTasks = require('./user-tasks')