Skip to content

Commit fbd5ffc

Browse files
t3chguydbkr
authored andcommitted
Fix close window behaviour on Macos
1 parent 7a7ea8c commit fbd5ffc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎electron_app/src/electron-main.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ app.on('ready', () => {
393393
});
394394
mainWindow.on('close', (e) => {
395395
// If we are not quitting and have a tray icon then minimize to tray
396-
if (!global.appQuitting && tray.hasTray()) {
396+
if (!global.appQuitting && (tray.hasTray() || process.platform === 'darwin')) {
397397
// On Mac, closing the window just hides it
398398
// (this is generally how single-window Mac apps
399399
// behave, eg. Mail.app)

0 commit comments

Comments
 (0)