[MM-36309] Completely remove menu bar from Linux/Windows (#1718)
This commit is contained in:
@@ -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
|
||||
|
@@ -548,3 +548,7 @@ function handleBrowserHistoryPush(e: IpcMainEvent, viewName: string, pathName: s
|
||||
export function getCurrentTeamName() {
|
||||
return status.currentServerName;
|
||||
}
|
||||
|
||||
export function removeWindowMenu() {
|
||||
status.mainWindow?.removeMenu();
|
||||
}
|
||||
|
Reference in New Issue
Block a user