Small change in category for menubar.ts
This commit is contained in:
parent
e7537e4a2b
commit
c86d66d142
1 changed files with 42 additions and 31 deletions
|
@ -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()`)
|
||||||
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue