Control custom title bar using store value

This commit is contained in:
Joel Collins 2019-06-06 14:43:25 +01:00
parent bc8096fe7a
commit e2eb051c31
4 changed files with 65 additions and 21 deletions

9
app/store.js Normal file
View 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