who tf checked this? Apple's HDG will kill us

This commit is contained in:
child_duckling 2022-05-16 22:36:32 -07:00
parent f39fc9a8ea
commit 5f07c8309f
2 changed files with 7 additions and 13 deletions

View file

@ -101,7 +101,7 @@ export class Store {
], ],
"settings": [ "settings": [
"CommandOrControl", // Who the hell uses a different key for this? Fucking Option? "CommandOrControl", // Who the hell uses a different key for this? Fucking Option?
"S" ","
], ],
"openDeveloperTools": [ "openDeveloperTools": [
"CommandOrControl", "CommandOrControl",

View file

@ -22,25 +22,21 @@ export default class Thumbar {
{ {
label: app.getName(), label: app.getName(),
submenu: [ submenu: [
{
label: `${utils.getLocale(utils.getStoreValue('general.language'), 'term.about')} ${app.getName()}`,
click: () => utils.getWindow().webContents.executeJavaScript(`app.appRoute('about')`)
},
{type: 'separator'},
{ {
label: utils.getLocale(utils.getStoreValue('general.language'), 'menubar.options.toggleprivate'), label: utils.getLocale(utils.getStoreValue('general.language'), 'menubar.options.toggleprivate'),
accelerator: utils.getStoreValue("general.keybindings.togglePrivateSession").join('+'), accelerator: utils.getStoreValue("general.keybindings.togglePrivateSession").join('+'),
click: () => utils.getWindow().webContents.executeJavaScript(`app.cfg.general.privateEnabled = !app.cfg.general.privateEnabled`) click: () => utils.getWindow().webContents.executeJavaScript(`app.cfg.general.privateEnabled = !app.cfg.general.privateEnabled`)
}, },
{type: 'separator'},
{ {
label: utils.getLocale(utils.getStoreValue('general.language'), 'menubar.options.settings'), label: utils.getLocale(utils.getStoreValue('general.language'), 'menubar.options.settings'),
accelerator: utils.getStoreValue("general.keybindings.settings").join('+'), accelerator: utils.getStoreValue("general.keybindings.settings").join('+'),
click: () => utils.getWindow().webContents.executeJavaScript(`app.appRoute('settings')`), click: () => utils.getWindow().webContents.executeJavaScript(`app.appRoute('settings')`),
}, },
...(this.isMac ? [
{type: 'separator'},
{role: 'services'},
{type: 'separator'},
{role: 'hide'},
{role: 'hideOthers'},
{role: 'unhide'},
]: [
{type: 'separator'}, {type: 'separator'},
{ {
label: utils.getLocale(utils.getStoreValue('general.language'), 'menubar.options.about'), label: utils.getLocale(utils.getStoreValue('general.language'), 'menubar.options.about'),
@ -48,10 +44,8 @@ export default class Thumbar {
}, },
{type: 'separator'}, {type: 'separator'},
{role: 'quit', label: utils.getLocale(utils.getStoreValue('general.language'), 'menubar.options.quit')}, {role: 'quit', label: utils.getLocale(utils.getStoreValue('general.language'), 'menubar.options.quit')},
]), ]
],
}, },
{ {
label: utils.getLocale(utils.getStoreValue('general.language'), 'menubar.options.view'), label: utils.getLocale(utils.getStoreValue('general.language'), 'menubar.options.view'),
submenu: [ submenu: [