1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-26 18:58:21 +02:00

Desktop: Remove Hide Joplin menu item on Linux and Windows

This commit is contained in:
Laurent Cozic 2020-10-12 10:45:00 +01:00
parent ea878fb614
commit 3539a452a3

View File

@ -397,12 +397,16 @@ function useMenu(props:Props) {
}, shim.isMac() ? noItem : printItem, { }, shim.isMac() ? noItem : printItem, {
type: 'separator', type: 'separator',
platforms: ['darwin'], platforms: ['darwin'],
}, { },
!shim.isMac() ? noItem : {
label: _('Hide %s', 'Joplin'), label: _('Hide %s', 'Joplin'),
platforms: ['darwin'], platforms: ['darwin'],
accelerator: shim.isMac() && keymapService.getAccelerator('hideApp'), accelerator: shim.isMac() && keymapService.getAccelerator('hideApp'),
click: () => { bridge().electronApp().hide(); }, click: () => { bridge().electronApp().hide(); },
}, { },
{
type: 'separator', type: 'separator',
}, },
quitMenuItem], quitMenuItem],