From 28dfdafd079ed5dd751aac8167d18e603d1e6896 Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Fri, 21 Oct 2022 06:35:12 -0400 Subject: [PATCH] Hide the menu bar to make it look more like a native app Signed-off-by: Dylan M. Taylor --- packages/main/src/mainWindow.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/main/src/mainWindow.ts b/packages/main/src/mainWindow.ts index d53dc819d9f..2699cc3de13 100644 --- a/packages/main/src/mainWindow.ts +++ b/packages/main/src/mainWindow.ts @@ -32,6 +32,7 @@ async function createWindow() { const browserWindowConstructorOptions: BrowserWindowConstructorOptions = { show: false, // Use 'ready-to-show' event to show window + autoHideMenuBar: true, // This makes Podman Desktop look more like a native app width: INITIAL_APP_WIDTH, minWidth: INITIAL_APP_MIN_WIDTH, minHeight: INITIAL_APP_MIN_HEIGHT, @@ -43,8 +44,7 @@ async function createWindow() { preload: join(__dirname, '../../preload/dist/index.cjs'), }, }; - // On Linux keep title bar as we may not have any tray icon - // being displayed + if (isMac) { // This property is not available on Linux. browserWindowConstructorOptions.titleBarStyle = 'hiddenInset';