mac menu changes

This commit is contained in:
stratuma 2024-05-25 02:34:57 +02:00
parent 641160d76c
commit 7f97ee4890

View File

@ -10,14 +10,10 @@ export default (mainWindow: BrowserWindow) => {
const isDevelopment = process.env.NODE_ENV === 'development' const isDevelopment = process.env.NODE_ENV === 'development'
if (process.platform === 'darwin') { if (process.platform === 'darwin') {
// OS X // OS X
const name = 'electron-nuxt3' const name = 'Crunchyroll Downloader'
template.unshift({ template.unshift({
label: name, label: name,
submenu: [ submenu: [
{
label: 'About ' + name,
role: 'about'
},
{ {
label: 'Quit', label: 'Quit',
accelerator: 'Command+Q', accelerator: 'Command+Q',
@ -25,16 +21,6 @@ export default (mainWindow: BrowserWindow) => {
app.quit() app.quit()
} }
}, },
{
label: 'Reload',
accelerator: 'Command+R',
click() {
// Reload the current window
if (mainWindow) {
mainWindow.reload()
}
}
},
...(isDevelopment ...(isDevelopment
? [ ? [
{ {