mirror of
https://github.com/finos/SymphonyElectron.git
synced 2026-08-05 10:47:55 -05:00
SDA-3428 - Hide electron's default menu bar for Windows (#1288)
This commit is contained in:
@@ -319,6 +319,11 @@ export class WindowHandler {
|
||||
...getBounds(this.config.mainWinPos, DEFAULT_WIDTH, DEFAULT_HEIGHT),
|
||||
}) as ICustomBrowserWindow;
|
||||
|
||||
// Hide electron's default menu bar for Windows
|
||||
if (isWindowsOS && this.mainWindow && windowExists(this.mainWindow)) {
|
||||
this.mainWindow.setMenuBarVisibility(false);
|
||||
}
|
||||
|
||||
logger.info(
|
||||
'window-handler: this.mainWindow.getBounds: ' +
|
||||
JSON.stringify(this.mainWindow.getBounds()),
|
||||
|
||||
Reference in New Issue
Block a user