mac menu changes
This commit is contained in:
parent
641160d76c
commit
7f97ee4890
@ -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
|
||||||
? [
|
? [
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user