mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-11-21 08:34:40 -06:00
SDA-3761 prevent setting the menu on Windows for the whole app (#1451)
This commit is contained in:
parent
ef67053ad2
commit
b94712685c
@ -165,7 +165,6 @@ export class AppMenu {
|
||||
public buildMenu(): void {
|
||||
// updates the global variables
|
||||
this.updateGlobals();
|
||||
|
||||
this.menuList = menuItemsArray.reduce(
|
||||
(map: Electron.MenuItemConstructorOptions, key: string) => {
|
||||
map[key] = this.buildMenuKey(key);
|
||||
@ -180,8 +179,6 @@ export class AppMenu {
|
||||
|
||||
this.menu = Menu.buildFromTemplate(template);
|
||||
logger.info(`app-menu: built menu from the provided template`);
|
||||
Menu.setApplicationMenu(this.menu);
|
||||
logger.info(`app-menu: set application menu`);
|
||||
|
||||
// Remove the default menu for window
|
||||
// as we use custom popup menu
|
||||
@ -190,6 +187,9 @@ export class AppMenu {
|
||||
if (mainWindow && windowExists(mainWindow)) {
|
||||
mainWindow.setMenuBarVisibility(false);
|
||||
}
|
||||
} else {
|
||||
logger.info(`app-menu: set application menu`);
|
||||
Menu.setApplicationMenu(this.menu);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,10 +1,14 @@
|
||||
@import "theme";
|
||||
@import 'theme';
|
||||
|
||||
@white: rgb(255, 255, 255, 1);
|
||||
@version-text-color: rgb(47, 47, 47, 1);
|
||||
@copyright-text-color: rgb(127, 127, 127, 1);
|
||||
@text-padding: 10px;
|
||||
|
||||
::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: white;
|
||||
margin: 0;
|
||||
@ -25,7 +29,6 @@ body {
|
||||
}
|
||||
|
||||
.AboutApp:lang(fr-FR) {
|
||||
|
||||
.AboutApp-symphony-section {
|
||||
padding-left: 10px;
|
||||
}
|
||||
@ -134,4 +137,3 @@ body {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user