mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
allow menu bar to be set in the settings
This commit is contained in:
@@ -6,7 +6,6 @@ const Config = require('electron-config')
|
||||
const config = new Config()
|
||||
const _ = require('lodash')
|
||||
|
||||
var showMenu = process.platform !== 'win32'
|
||||
const windowSize = config.get('windowsize') || {
|
||||
x: null,
|
||||
y: null,
|
||||
@@ -22,7 +21,6 @@ const mainWindow = new BrowserWindow({
|
||||
useContentSize: true,
|
||||
minWidth: 500,
|
||||
minHeight: 320,
|
||||
autoHideMenuBar: showMenu,
|
||||
webPreferences: {
|
||||
zoomFactor: 1.0,
|
||||
enableBlinkFeatures: 'OverlayScrollbars'
|
||||
@@ -33,6 +31,7 @@ const mainWindow = new BrowserWindow({
|
||||
const url = path.resolve(__dirname, './main.html')
|
||||
|
||||
mainWindow.loadURL('file://' + url)
|
||||
mainWindow.setMenuBarVisibility(false)
|
||||
|
||||
mainWindow.webContents.on('new-window', function (e) {
|
||||
e.preventDefault()
|
||||
|
||||
Reference in New Issue
Block a user