launcher: add Autostart menu option
This commit is contained in:
parent
87842dbd12
commit
feb59f2c7a
4 changed files with 23 additions and 2 deletions
|
|
@ -99,6 +99,15 @@ menu.append(new MenuItem({type: 'submenu' , label: 'Console', submenu: [
|
|||
menu.append(new MenuItem({
|
||||
type: 'separator'
|
||||
}))
|
||||
menu.append(new MenuItem({
|
||||
label: 'Autostart',
|
||||
type: 'checkbox',
|
||||
checked: settings.remote.read('autoStart'),
|
||||
click: (e)=>{
|
||||
settings.remote.write('autoStart', e.checked)
|
||||
remote.getCurrentWindow().setAlwaysOnTop(e.checked)
|
||||
}
|
||||
}))
|
||||
menu.append(new MenuItem({
|
||||
label: 'Always on top',
|
||||
type: 'checkbox',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue