Commit e55d2cb5 authored by Medicean's avatar Medicean

Fix(MenuBar): fix #307

parent 604b1dc8
......@@ -74,7 +74,8 @@ app.once('ready', () => {
event.preventDefault();
// app.exit(0);
if (process.platform == 'darwin') {
app.hide();
// app.hide();
app.exit(0);
} else if (process.platform == 'linux') {
return;
} else {
......
......@@ -113,7 +113,7 @@ class Menubar {
accelerator: 'Command+Q',
click: this
.app
.exit
.quit
.bind(this.app)
}]
}, {
......@@ -281,10 +281,7 @@ class Menubar {
type: 'separator'
}, {
label: LANG['tray']['quit'],
click: this
.app
.exit
.bind(this.app)
click: this.app.quit.bind(this.app)
}];
this
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment