From 8c0d94aa1dc55436bb4c6d498c16ea4c1795af1f Mon Sep 17 00:00:00 2001 From: Guillermo Rauch Date: Fri, 8 Jul 2016 07:40:27 -0700 Subject: [PATCH] improve config notifications --- app/config.js | 1 - config.js | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/config.js b/app/config.js index 7f75d775..ab11e637 100644 --- a/app/config.js +++ b/app/config.js @@ -16,7 +16,6 @@ export default class Config extends React.Component { } onChange () { - new Notification('HyperTerm configuration reloaded!'); this.setState({ config: config.getConfig() }); } diff --git a/config.js b/config.js index caf15022..02044a8d 100644 --- a/config.js +++ b/config.js @@ -4,6 +4,7 @@ const { resolve } = require('path'); const { readFileSync, writeFileSync } = require('fs'); const gaze = require('gaze'); const vm = require('vm'); +const notify = require('./notify'); const path = resolve(homedir(), '.hyperterm.js'); const watchers = []; @@ -16,6 +17,7 @@ function watch () { this.on('changed', () => { try { if (exec(readFileSync(path, 'utf8'))) { + notify('HyperTerm configuration reloaded!'); watchers.forEach((fn) => fn()); } } catch (err) {