Feature(custom): add feedback entry

This commit is contained in:
Kuingsmile
2024-04-19 21:51:23 +08:00
parent 2fab2a9765
commit 2087d9a355
5 changed files with 12 additions and 1 deletions

View File

@@ -2,7 +2,7 @@
import pkg from 'root/package.json'
// Electron modules
import { Menu, BrowserWindow, app, dialog } from 'electron'
import { Menu, BrowserWindow, app, dialog, shell } from 'electron'
// Custom utilities and modules
import windowManager from 'apis/app/window/windowManager'
@@ -140,6 +140,13 @@ const buildMainPageMenu = (win: BrowserWindow) => {
click () {
win?.webContents?.openDevTools({ mode: 'detach' })
}
},
{
label: T('FEEDBACK'),
click () {
const url = 'https://github.com/Kuingsmile/PicList/issues'
shell.openExternal(url)
}
}
]
// @ts-ignore