From 9a0316dd599d152e2b6b79ce817b03bb8c02bfc3 Mon Sep 17 00:00:00 2001 From: Brian Douglas Date: Mon, 29 Aug 2016 15:38:05 +0100 Subject: [PATCH] issue-656/config-values-arent-scoped (#669) * issue-656/scoped plugins to hyperterm.plugins * Scoping plugin versions to hyperterm --- app/plugins.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/plugins.js b/app/plugins.js index 9c06e247..7a1b89b6 100644 --- a/app/plugins.js +++ b/app/plugins.js @@ -79,7 +79,7 @@ function updatePlugins ({ force = false } = {}) { } } else { // flag successful plugin update - cache.set('plugins', id_); + cache.set('hyperterm.plugins', id_); // cache paths paths = getPaths(plugins); @@ -93,8 +93,8 @@ function updatePlugins ({ force = false } = {}) { const loaded = modules.length; const total = paths.plugins.length + paths.localPlugins.length; const pluginVersions = JSON.stringify(getPluginVersions()); - const changed = cache.get('plugin-versions') !== pluginVersions && loaded === total; - cache.set('plugin-versions', pluginVersions); + const changed = cache.get('hyperterm.plugin-versions') !== pluginVersions && loaded === total; + cache.set('hyperterm.plugin-versions', pluginVersions); // notify watchers if (force || changed) { @@ -148,7 +148,7 @@ exports.updatePlugins = updatePlugins; // we schedule the initial plugins update // a bit after the user launches the terminal // to prevent slowness -if (cache.get('plugins') !== id || process.env.HYPERTERM_FORCE_UPDATE) { +if (cache.get('hyperterm.plugins') !== id || process.env.HYPERTERM_FORCE_UPDATE) { // install immediately if the user changed plugins console.log('plugins have changed / not init, scheduling plugins installation'); setTimeout(() => {