Add about window
This commit is contained in:
@@ -1,11 +1,22 @@
|
||||
import { Menu, app, BrowserWindow, webContents } from 'electron'
|
||||
import openAboutWindow from 'about-window'
|
||||
import * as path from 'path'
|
||||
|
||||
const applicationMenu = {
|
||||
label: 'Application',
|
||||
submenu: [
|
||||
{
|
||||
label: 'About Application',
|
||||
selector: 'orderFrontStandardAboutPanel:',
|
||||
click: () => {
|
||||
console.log(path.join(__dirname, 'icon.png'))
|
||||
openAboutWindow({
|
||||
icon_path: path.join(__dirname, 'icon.png'),
|
||||
license: 'AGPL-3.0',
|
||||
homepage: 'https://thomasnordquist.github.io/MQTT-Explorer/',
|
||||
bug_report_url: 'https://github.com/thomasnordquist/MQTT-Explorer/issues',
|
||||
description: 'Author: Thomas Nordquist',
|
||||
})
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'separator' as 'separator',
|
||||
|
||||
Reference in New Issue
Block a user