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,34 +36,15 @@ export default class Thumbar {
private isMac: boolean = process.platform === 'darwin'; private isMac: boolean = process.platform === 'darwin';
private menubarTemplate: any = [ private menubarTemplate: any = [
{ {
label: app.name, label: app.getName(),
submenu: [ submenu: [
{ { role: 'about' },
label: 'Web Remote', { type: 'separator' },
accelerator: 'CommandOrControl+Shift+W', { role: 'services' },
sublabel: 'Opens in external window', { type: 'separator' },
click: () => this._win.webContents.executeJavaScript(`ipcRenderer.invoke('showQR')`) { role: 'hide' },
}, //accelerator { role: 'hideOthers' },
{ { role: 'unhide' },
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' }, { type: 'separator' },
{ role: 'quit' } { role: 'quit' }
] ]
@ -79,7 +60,7 @@ export default class Thumbar {
{role: 'zoomIn'}, {role: 'zoomIn'},
{role: 'zoomOut'}, {role: 'zoomOut'},
{type: 'separator'}, {type: 'separator'},
{role: 'togglefullscreen'} {role: 'togglefullscreen'},
] ]
}, },
{ {
@ -94,7 +75,37 @@ export default class Thumbar {
{role: 'window'} {role: 'window'}
] : [ ] : [
{role: 'close'} {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()`)
}
] ]
}, },
{ {