mirror of
https://github.com/FreeTubeApp/FreeTube
synced 2025-01-24 02:30:57 +01:00
* Update app menu to add item for history (#2870)
This commit is contained in:
parent
d32739eb9c
commit
2ad431622a
@ -33,7 +33,7 @@ module.exports = {
|
||||
|
||||
rules: {
|
||||
'space-before-function-paren': 'off',
|
||||
'comma-dangle': ['error', 'never'],
|
||||
'comma-dangle': ['error', 'only-multiline'],
|
||||
'vue/no-v-html': 'off',
|
||||
'no-console': ['error', { allow: ['warn', 'error'] }],
|
||||
'no-unused-vars': 'warn',
|
||||
|
@ -998,7 +998,23 @@ function runApp() {
|
||||
{ role: 'zoomout' },
|
||||
{ role: 'zoomout', accelerator: 'CmdOrCtrl+numsub', visible: false },
|
||||
{ type: 'separator' },
|
||||
{ role: 'togglefullscreen' }
|
||||
{ role: 'togglefullscreen' },
|
||||
{ type: 'separator' },
|
||||
{
|
||||
label: 'History',
|
||||
// MacOS: Command + Y
|
||||
// Other OS: Ctrl + H
|
||||
accelerator: process.platform === 'darwin' ? 'Cmd+Y' : 'Ctrl+H',
|
||||
click: (_menuItem, browserWindow, _event) => {
|
||||
if (browserWindow == null) { return }
|
||||
|
||||
browserWindow.webContents.send(
|
||||
'change-view',
|
||||
{ route: '/history' }
|
||||
)
|
||||
},
|
||||
type: 'normal'
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user