mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
ELECTRON-670 - Remove setting menu to null for pop-out (#457)
This commit is contained in:
parent
2624e706c5
commit
65b107a1ab
@ -465,11 +465,6 @@ function doCreateMainWindow(initialUrl, initialBounds, isCustomTitleBar) {
|
|||||||
if (browserWin) {
|
if (browserWin) {
|
||||||
log.send(logLevels.INFO, 'loaded pop-out window url: ' + newWinParsedUrl);
|
log.send(logLevels.INFO, 'loaded pop-out window url: ' + newWinParsedUrl);
|
||||||
|
|
||||||
if (!isMac) {
|
|
||||||
// Removes the menu bar from the pop-out window
|
|
||||||
// setMenu is currently only supported on Windows and Linux
|
|
||||||
browserWin.setMenu(null);
|
|
||||||
}
|
|
||||||
browserWin.webContents.send('on-page-load');
|
browserWin.webContents.send('on-page-load');
|
||||||
// applies styles required for snack bar
|
// applies styles required for snack bar
|
||||||
browserWin.webContents.insertCSS(fs.readFileSync(path.join(__dirname, '/snackBar/style.css'), 'utf8').toString());
|
browserWin.webContents.insertCSS(fs.readFileSync(path.join(__dirname, '/snackBar/style.css'), 'utf8').toString());
|
||||||
|
Loading…
Reference in New Issue
Block a user