From 8d4cdddc46d7f32a43619f1e0197444c9ff2bf6b Mon Sep 17 00:00:00 2001 From: markatosi <33800304+markatosi@users.noreply.github.com> Date: Fri, 12 Dec 2025 13:45:56 -1000 Subject: [PATCH] Conditionally set AutoHideMenuBar for Windows/Linux --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2ef5c0cf..c264e3be 100644 --- a/README.md +++ b/README.md @@ -133,9 +133,10 @@ builder.UseElectron(args, async () => { var options = new BrowserWindowOptions { Show = false, - AutoHideMenuBar = true, IsRunningBlazor = true, // <-- crucial }; + if (OperatingSystem.IsWindows() || OperatingSystem.IsLinux()) + options.AutoHideMenuBar = true; var browserWindow = await Electron.WindowManager.CreateWindowAsync(options); browserWindow.OnReadyToShow += () => browserWindow.Show(); });