[MM-36309] Completely remove menu bar from Linux/Windows (#1718)

This commit is contained in:
Devin Binnie
2021-09-02 14:07:29 -04:00
committed by GitHub
parent 78819d1dca
commit 3213a16774
2 changed files with 5 additions and 0 deletions

View File

@@ -845,6 +845,7 @@ function handleCloseAppMenu() {
function handleUpdateMenuEvent(event: IpcMainEvent, menuConfig: Config) {
const aMenu = appMenu.createMenu(menuConfig);
Menu.setApplicationMenu(aMenu);
WindowManager.removeWindowMenu();
aMenu.addListener('menu-will-close', handleCloseAppMenu);
// set up context menu for tray icon

View File

@@ -548,3 +548,7 @@ function handleBrowserHistoryPush(e: IpcMainEvent, viewName: string, pathName: s
export function getCurrentTeamName() {
return status.currentServerName;
}
export function removeWindowMenu() {
status.mainWindow?.removeMenu();
}