parent
0d2d72f3c1
commit
1386eff3a5
@ -0,0 +1,25 @@ |
||||
import {BrowserWindow, MenuItemConstructorOptions, app} from 'electron'; |
||||
const { dialog } = require('electron') |
||||
export default ( |
||||
commandKeys: Record<string, string>, |
||||
execCommand: (command: string, focusedWindow?: BrowserWindow) => void |
||||
): MenuItemConstructorOptions => { |
||||
const isMac = process.platform === 'darwin'; |
||||
|
||||
return { |
||||
label: 'Help', |
||||
submenu: [ |
||||
{ |
||||
label: `About Remix Desktop version ${app.getVersion()}`, |
||||
click(item, focusedWindow) { |
||||
dialog.showMessageBox({ |
||||
title: `About Remix`, |
||||
message: `Version info`, |
||||
detail: `Remix Desktop version ${app.getVersion()}`, |
||||
buttons: [], |
||||
}); |
||||
} |
||||
} |
||||
] |
||||
}; |
||||
}; |
Loading…
Reference in new issue