Control custom title bar using store value
This commit is contained in:
parent
bc8096fe7a
commit
e2eb051c31
4 changed files with 65 additions and 21 deletions
14
app/menu.js
14
app/menu.js
|
|
@ -5,6 +5,9 @@ const path = require('path')
|
|||
|
||||
const openAboutWindow = require('about-window').default
|
||||
|
||||
const main = require('./app')
|
||||
const { store } = require('./store')
|
||||
|
||||
const template = [
|
||||
{
|
||||
label: 'Edit',
|
||||
|
|
@ -26,7 +29,16 @@ const template = [
|
|||
{ role: 'forcereload' },
|
||||
{ role: 'toggledevtools' },
|
||||
{ type: 'separator' },
|
||||
{ role: 'togglefullscreen' }
|
||||
{ role: 'togglefullscreen' },
|
||||
{ type: 'separator' },
|
||||
{
|
||||
type: 'checkbox',
|
||||
checked: store.get('drawCustomTitleBar'),
|
||||
label: 'Custom titlebar',
|
||||
click () {
|
||||
main.toggleCustomTitleBar()
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue