mirror of
https://github.com/FreeTubeApp/FreeTube
synced 2024-12-16 14:40:44 +01:00
* Update app menu to add item for new window (#2306)
with keyboard shortcut
This commit is contained in:
parent
6e25d35459
commit
10f0af1efa
@ -770,7 +770,21 @@ function runApp() {
|
||||
const template = [
|
||||
{
|
||||
label: 'File',
|
||||
submenu: [{ role: 'quit' }]
|
||||
submenu: [
|
||||
{
|
||||
label: 'New Window',
|
||||
accelerator: 'CmdOrCtrl+N',
|
||||
click: (_menuItem, _browserWindow, _event) => {
|
||||
createWindow({
|
||||
replaceMainWindow: false,
|
||||
showWindowNow: true
|
||||
})
|
||||
},
|
||||
type: 'normal'
|
||||
},
|
||||
{ type: 'separator' },
|
||||
{ role: 'quit' }
|
||||
]
|
||||
},
|
||||
{
|
||||
label: 'Edit',
|
||||
|
@ -7,6 +7,7 @@ FreeTube: FreeTube
|
||||
|
||||
# Webkit Menu Bar
|
||||
File: File
|
||||
New Window: New Window
|
||||
Quit: Quit
|
||||
Edit: Edit
|
||||
Undo: Undo
|
||||
|
Loading…
Reference in New Issue
Block a user