Skip to content

Commit

Permalink
fix #1820: minimize on close on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
antelle committed May 19, 2021
1 parent b2d6781 commit f0426a3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/scripts/comp/launcher/launcher-electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ const Launcher = {
}
},
quitOnRealQuitEventIfMinimizeOnQuitIsEnabled() {
return !!(this.platform() === 'darwin' || this.pendingUpdateFile);
return !!this.pendingUpdateFile;
},
minimizeApp() {
this.remoteApp().minimizeApp({
Expand Down
4 changes: 3 additions & 1 deletion desktop/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,9 @@ main.minimizeApp = function (menuItemLabels) {
if (!appIcon) {
const image = electron.nativeImage.createFromPath(path.join(__dirname, 'img', imagePath));
appIcon = new electron.Tray(image);
appIcon.on('click', restoreMainWindow);
if (process.platform !== 'darwin') {
appIcon.on('click', restoreMainWindow);
}
const contextMenu = electron.Menu.buildFromTemplate([
{ label: menuItemLabels.restore, click: restoreMainWindow },
{ label: menuItemLabels.quit, click: closeMainWindow }
Expand Down
1 change: 1 addition & 0 deletions release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Release notes
##### v1.18.6 (2021-05-19)
`-` fix #1824: saving KDBX3 files with compression disabled
`-` fix #1818: extension connection error if browser cannot be identified
`-` fix #1820: minimize on close on macOS

##### v1.18.5 (2021-05-14)
`-` fix #1816: old Chromium support, such as Android Edge
Expand Down

0 comments on commit f0426a3

Please sign in to comment.