Add preferences page
* For now, the prefs page has just a single option, Downloads Folder * For now, you can't type in a folder, you must use the chooser * Further fixes coming om master * Written by @ChrisMorrisOrg and @grunjol, rebased by @dcposch
This commit is contained in:
21
main/menu.js
21
main/menu.js
@@ -116,6 +116,11 @@ function decreasePlaybackRate () {
|
||||
}
|
||||
}
|
||||
|
||||
// Open the preferences window
|
||||
function showPreferences () {
|
||||
windows.main.send('dispatch', 'preferences')
|
||||
}
|
||||
|
||||
function onWindowShow () {
|
||||
log('onWindowShow')
|
||||
getMenuItem('Full Screen').enabled = true
|
||||
@@ -269,6 +274,14 @@ function getAppMenuTemplate () {
|
||||
label: 'Select All',
|
||||
accelerator: 'CmdOrCtrl+A',
|
||||
role: 'selectall'
|
||||
},
|
||||
{
|
||||
type: 'separator'
|
||||
},
|
||||
{
|
||||
label: 'Preferences',
|
||||
accelerator: 'CmdOrCtrl+,',
|
||||
click: () => showPreferences()
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -411,6 +424,14 @@ function getAppMenuTemplate () {
|
||||
{
|
||||
type: 'separator'
|
||||
},
|
||||
{
|
||||
label: 'Preferences',
|
||||
accelerator: 'Cmd+,',
|
||||
click: () => showPreferences()
|
||||
},
|
||||
{
|
||||
type: 'separator'
|
||||
},
|
||||
{
|
||||
label: 'Services',
|
||||
role: 'services',
|
||||
|
||||
Reference in New Issue
Block a user