Commit e55d2cb5 authored by Medicean's avatar Medicean

Fix(MenuBar): fix #307

parent 604b1dc8
...@@ -74,7 +74,8 @@ app.once('ready', () => { ...@@ -74,7 +74,8 @@ app.once('ready', () => {
event.preventDefault(); event.preventDefault();
// app.exit(0); // app.exit(0);
if (process.platform == 'darwin') { if (process.platform == 'darwin') {
app.hide(); // app.hide();
app.exit(0);
} else if (process.platform == 'linux') { } else if (process.platform == 'linux') {
return; return;
} else { } else {
......
...@@ -113,7 +113,7 @@ class Menubar { ...@@ -113,7 +113,7 @@ class Menubar {
accelerator: 'Command+Q', accelerator: 'Command+Q',
click: this click: this
.app .app
.exit .quit
.bind(this.app) .bind(this.app)
}] }]
}, { }, {
...@@ -281,10 +281,7 @@ class Menubar { ...@@ -281,10 +281,7 @@ class Menubar {
type: 'separator' type: 'separator'
}, { }, {
label: LANG['tray']['quit'], label: LANG['tray']['quit'],
click: this click: this.app.quit.bind(this.app)
.app
.exit
.bind(this.app)
}]; }];
this 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