Add Private Session Toggle to menubar (macOS) (#905)

* Add Private Session to menubar

* Moved to Window and changed to toggle

* Add shortcut
This commit is contained in:
Amaru8 2022-04-22 00:03:12 +02:00 committed by GitHub
parent fc90707373
commit f35b823d71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -102,6 +102,12 @@ export default class Thumbar {
] ]
}, },
{type: 'separator'}, {type: 'separator'},
{
label: 'Toggle Private Session',
accelerator: 'CommandOrControl+Shift+I',
click: () => this._win.webContents.executeJavaScript(`app.cfg.general.privateEnabled = !app.cfg.general.privateEnabled`)
},
{type: 'separator'},
{ {
label: 'Web Remote', label: 'Web Remote',
accelerator: 'CommandOrControl+Shift+W', accelerator: 'CommandOrControl+Shift+W',