diff --git a/preferencemanager.js b/preferencemanager.js index 46ef284..99d7663 100644 --- a/preferencemanager.js +++ b/preferencemanager.js @@ -21,6 +21,9 @@ function showPreferences_int(){ // when you should delete the corresponding element. preferencesWindow = null }) + preferencesWindow.on('blur',() => { + preferencesWindow.close(); + }) } } module.exports.showPreferences = function(){