mirror of
https://github.com/mifi/lossless-cut.git
synced 2024-11-22 02:12:30 +01:00
parent
8e361077a8
commit
c7df8b5e9c
@ -15,6 +15,7 @@ const { Menu } = electron;
|
||||
export default ({ app, mainWindow, newVersion, isStoreBuild }: {
|
||||
app: Electron.App, mainWindow: BrowserWindow, newVersion?: string | undefined, isStoreBuild: boolean,
|
||||
}) => {
|
||||
// todo TS mainWindow.webContents.send
|
||||
const menu: (MenuItemConstructorOptions | MenuItem)[] = [
|
||||
...(process.platform === 'darwin' ? [{ role: 'appMenu' as const }] : []),
|
||||
|
||||
|
@ -2424,6 +2424,8 @@ function App() {
|
||||
key,
|
||||
async () => actionWithCatch(() => fn({ keyup: true })),
|
||||
] as const),
|
||||
// also called from menu:
|
||||
['toggleKeyboardShortcuts', async () => actionWithCatch(() => toggleKeyboardShortcuts())],
|
||||
];
|
||||
|
||||
actionsWithCatch.forEach(([key, action]) => electron.ipcRenderer.on(key, action));
|
||||
|
Loading…
Reference in New Issue
Block a user