File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ const BrowserWindow = electron.BrowserWindow
3
3
const shell = electron . shell
4
4
const ipc = electron . ipcMain
5
5
const mainWindow = require ( './main-window' )
6
+ const os = require ( 'os' )
6
7
7
8
const macOS = process . platform === 'darwin'
8
9
// const WIN = process.platform === 'win32'
@@ -411,6 +412,28 @@ const help = {
411
412
click ( ) { shell . openExternal ( 'https://github.com/TobseF/boostnote-markdown-cheatsheet/blob/master/BOOSTNOTE_MARKDOWN_CHEAT_SHEET.md' ) }
412
413
}
413
414
]
415
+ } ,
416
+ {
417
+ type : 'separator'
418
+ } ,
419
+ {
420
+ label : 'About' ,
421
+ click ( ) {
422
+ const version = electron . app . getVersion ( )
423
+ const electronVersion = process . versions . electron
424
+ const chromeVersion = process . versions . chrome
425
+ const nodeVersion = process . versions . node
426
+ const v8Version = process . versions . v8
427
+ const OSInfo = `${ os . type ( ) } ${ os . arch ( ) } ${ os . release ( ) } `
428
+ const detail = `Version: ${ version } \nElectron: ${ electronVersion } \nChrome: ${ chromeVersion } \nNode.js: ${ nodeVersion } \nV8: ${ v8Version } \nOS: ${ OSInfo } `
429
+ electron . dialog . showMessageBox ( BrowserWindow . getFocusedWindow ( ) ,
430
+ {
431
+ title : 'BoostNote' ,
432
+ message : 'BoostNote' ,
433
+ type : 'info' ,
434
+ detail : `\n${ detail } `
435
+ } )
436
+ }
414
437
}
415
438
]
416
439
}
You can’t perform that action at this time.
0 commit comments