mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
hide menu bar on linux
This commit is contained in:
parent
83b3f773c6
commit
a3f7557226
1 changed files with 5 additions and 0 deletions
|
@ -9,6 +9,8 @@ function createWindow() {
|
|||
win = new BrowserWindow({
|
||||
width: 1220,
|
||||
height: 920,
|
||||
autoHideMenuBar: true,
|
||||
icon: __dirname + '/src/app-icon.png',
|
||||
webPreferences: {
|
||||
//preload: path.join(__dirname, 'preload-main.js'),
|
||||
preload: require.resolve('./preload-main.js'),
|
||||
|
@ -17,6 +19,9 @@ function createWindow() {
|
|||
enableRemoteModule: false, //https://stackoverflow.com/questions/53390798/opening-new-window-electron/53393655 https://github.com/electron/remote
|
||||
}
|
||||
})
|
||||
// hide menu bar
|
||||
win.setMenuBarVisibility(false)
|
||||
|
||||
//open dev tools
|
||||
win.webContents.openDevTools({
|
||||
mode: 'undocked',
|
||||
|
|
Loading…
Reference in a new issue