click: function(){ app.exit(); }
module.exports.saveAppState(data).then(() => { // Exit immediately without doing the session store saving stuff // since we want the same state saved except for the update status app.exit(0) })
mainWindow.on('closed', function() { app.exit(); //主窗口关闭,直接退出 });