mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2024-12-31 19:17:44 +01:00
refs #377 Hide app when close button is clicked in mac
This commit is contained in:
parent
5006c066a0
commit
4afd1de7d1
@ -247,12 +247,11 @@ app.commandLine.appendSwitch('disable-renderer-backgrounding')
|
||||
app.on('ready', createWindow)
|
||||
|
||||
app.on('window-all-closed', () => {
|
||||
app.quit()
|
||||
// This is a single-window application.
|
||||
// So quit application when main window is closed.
|
||||
// if (process.platform !== 'darwin') {
|
||||
// app.quit()
|
||||
// }
|
||||
// this action is called when user click the close button.
|
||||
// In macOS, close button does not shutdown application. It is hide application window.
|
||||
if (process.platform !== 'darwin') {
|
||||
app.quit()
|
||||
}
|
||||
})
|
||||
|
||||
app.on('activate', () => {
|
||||
|
Loading…
Reference in New Issue
Block a user