parent
aca0db73ae
commit
886fc8675d
@ -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