mirror of
https://github.com/element-hq/element-web
synced 2024-11-29 04:48:50 +03:00
Merge pull request #11311 from vector-im/dbkr/hotfix_macos_151_2
Fix close window behaviour on Macos
This commit is contained in:
commit
0401e86216
1 changed files with 1 additions and 1 deletions
|
@ -393,7 +393,7 @@ app.on('ready', () => {
|
|||
});
|
||||
mainWindow.on('close', (e) => {
|
||||
// If we are not quitting and have a tray icon then minimize to tray
|
||||
if (!global.appQuitting && tray.hasTray()) {
|
||||
if (!global.appQuitting && (tray.hasTray() || process.platform === 'darwin')) {
|
||||
// On Mac, closing the window just hides it
|
||||
// (this is generally how single-window Mac apps
|
||||
// behave, eg. Mail.app)
|
||||
|
|
Loading…
Reference in a new issue