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
9
app/store.js
Normal file
9
app/store.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
const Store = require('electron-store');
|
||||
const store = new Store();
|
||||
|
||||
if (store.has('drawCustomTitleBar') !== true) {
|
||||
// Default to false if on MacOS, otherwise true
|
||||
store.set('drawCustomTitleBar', (process.platform !== 'darwin') ? true : false)
|
||||
}
|
||||
|
||||
module.exports.store = store
|
||||
Loading…
Add table
Add a link
Reference in a new issue