Small change in category for menubar.ts

This commit is contained in:
Core 2022-02-06 09:39:23 +00:00
parent e7537e4a2b
commit c86d66d142
No known key found for this signature in database
GPG key ID: FE9BF1B547F8F3C6

View file

@ -36,36 +36,17 @@ export default class Thumbar {
private isMac: boolean = process.platform === 'darwin';
private menubarTemplate: any = [
{
label: app.name,
label: app.getName(),
submenu: [
{
label: 'Web Remote',
accelerator: 'CommandOrControl+Shift+W',
sublabel: 'Opens in external window',
click: () => this._win.webContents.executeJavaScript(`ipcRenderer.invoke('showQR')`)
}, //accelerator
{
label: 'Audio Settings',
accelerator: 'CommandOrControl+Shift+A',
click: () => this._win.webContents.executeJavaScript(`app.modals.audioSettings = true`)
},
{
label: 'About',
accelerator: 'CommandOrControl+Shift+B',
click: () => this._win.webContents.executeJavaScript(`app.appRoute('about'`)
},
{
label: 'Settings',
accelerator: 'CommandOrControl+,',
click: () => this._win.webContents.executeJavaScript(`app.appRoute('settings')`)
},
{
label: 'Logout',
accelerator: 'CommandOrControl+Shift+O',
click: () => this._win.webContents.executeJavaScript(`app.unauthorize()`)
},
{type: 'separator'},
{role: 'quit'}
{ role: 'about' },
{ type: 'separator' },
{ role: 'services' },
{ type: 'separator' },
{ role: 'hide' },
{ role: 'hideOthers' },
{ role: 'unhide' },
{ type: 'separator' },
{ role: 'quit' }
]
},
{
@ -79,7 +60,7 @@ export default class Thumbar {
{role: 'zoomIn'},
{role: 'zoomOut'},
{type: 'separator'},
{role: 'togglefullscreen'}
{role: 'togglefullscreen'},
]
},
{
@ -94,7 +75,37 @@ export default class Thumbar {
{role: 'window'}
] : [
{role: 'close'}
])
]),
{type: 'separator'},
{
label: 'Web Remote',
accelerator: 'CommandOrControl+Shift+W',
sublabel: 'Opens in external window',
click: () => this._win.webContents.executeJavaScript(`ipcRenderer.invoke('showQR')`)
},
{
label: 'Audio Settings',
accelerator: 'CommandOrControl+Shift+A',
click: () => this._win.webContents.executeJavaScript(`app.modals.audioSettings = true`)
},
{
label: 'Settings',
accelerator: 'CommandOrControl+,',
click: () => this._win.webContents.executeJavaScript(`app.appRoute('settings')`)
}
]
},
{
label: 'Account',
submenu: [
{
label: 'Account Settings',
click: () => this._win.webContents.executeJavaScript(`app.appRoute('apple-account-settings')`)
},
{
label: 'Sign Out',
click: () => this._win.webContents.executeJavaScript(`app.unauthorize()`)
}
]
},
{