mirror of https://github.com/keeweb/keeweb.git
fix #1820: minimize on close on macOS
This commit is contained in:
parent
b2d67818a8
commit
f0426a3ec2
|
@ -191,7 +191,7 @@ const Launcher = {
|
|||
}
|
||||
},
|
||||
quitOnRealQuitEventIfMinimizeOnQuitIsEnabled() {
|
||||
return !!(this.platform() === 'darwin' || this.pendingUpdateFile);
|
||||
return !!this.pendingUpdateFile;
|
||||
},
|
||||
minimizeApp() {
|
||||
this.remoteApp().minimizeApp({
|
||||
|
|
|
@ -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 }
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue