mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
Hid menu
This commit is contained in:
@@ -190,6 +190,4 @@ var help = {
|
|||||||
|
|
||||||
module.exports = process.platform === 'darwin'
|
module.exports = process.platform === 'darwin'
|
||||||
? [boost, file, edit, view, window, help]
|
? [boost, file, edit, view, window, help]
|
||||||
: process.platform === 'win32'
|
: []
|
||||||
? [boost, file, view, help]
|
|
||||||
: [file, view, help]
|
|
||||||
|
|||||||
@@ -3,11 +3,14 @@ const app = electron.app
|
|||||||
const BrowserWindow = electron.BrowserWindow
|
const BrowserWindow = electron.BrowserWindow
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
|
|
||||||
|
var showMenu == process.platform == "Win32" ? false : true;
|
||||||
|
|
||||||
var mainWindow = new BrowserWindow({
|
var mainWindow = new BrowserWindow({
|
||||||
width: 1080,
|
width: 1080,
|
||||||
height: 720,
|
height: 720,
|
||||||
minWidth: 420,
|
minWidth: 420,
|
||||||
minHeight: 320,
|
minHeight: 320,
|
||||||
|
autoHideMenuBar: showMenu,
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
zoomFactor: 1.0,
|
zoomFactor: 1.0,
|
||||||
blinkFeatures: 'OverlayScrollbars'
|
blinkFeatures: 'OverlayScrollbars'
|
||||||
|
|||||||
Reference in New Issue
Block a user