mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 11:50:56 +00:00
Fix desktop file menu on Linux (#7106)
This commit is contained in:
parent
e3353df572
commit
f2f925a2f0
@ -16,6 +16,7 @@
|
||||
import { Menu, MenuItemConstructorOptions, type BrowserWindow } from 'electron'
|
||||
|
||||
const isMac = process.platform === 'darwin'
|
||||
const isLinux = process.platform === 'linux'
|
||||
|
||||
export const addMenus = (getWindow: () => BrowserWindow, sendCommand: (cmd: string, ...args: any[]) => void): void => {
|
||||
const template: MenuItemConstructorOptions[] = [
|
||||
@ -24,7 +25,7 @@ export const addMenus = (getWindow: () => BrowserWindow, sendCommand: (cmd: stri
|
||||
submenu: [
|
||||
{
|
||||
label: 'Settings',
|
||||
accelerator: 'Meta+,',
|
||||
accelerator: isLinux ? 'Ctrl+,' : 'Meta+,',
|
||||
click: () => { sendCommand('open-settings') }
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user