handle blur in preference window

This commit is contained in:
Damillora 2017-07-04 00:07:12 +07:00
parent c285f5bee1
commit d60baa4da0

View File

@ -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(){