Skip to content

fix: remove the native application menu on Windows/Linux - #10

Merged
Dustella merged 1 commit into
mainfrom
fix/windows-remove-app-menu
Jul 4, 2026
Merged

Dustella merged 1 commit into
mainfrom
fix/windows-remove-app-menu

Conversation

@Dustella

@Dustella Dustella commented Jul 4, 2026

Copy link
Copy Markdown
Member

Problem

On Windows/Linux, Electron renders a default application menu (File / Edit / View / Window) as an in-window menu bar between the title bar and the app content. The app drives every command from its own UI and renderer keyboard shortcuts, so that native menu is redundant chrome.

Fix

Call Menu.setApplicationMenu(null) during startup on non-macOS platforms.

macOS is intentionally excluded: its menu bar lives in the system top bar and provides the standard app/edit accelerators (⌘C/⌘V/⌘Q, etc.) expected on that platform, so it stays.

Verification (Windows)

OS-level window capture before/after:

  • Before: title bar → File Edit View Window menu row → tab bar.
  • After: title bar → tab bar directly (menu row gone).

Standard text-editing shortcuts in inputs still work (handled by Chromium, not the menu). pnpm --filter @oh-my-github/client typecheck passes.

🤖 Generated with Claude Code

Electron renders a default application menu (File/Edit/View/Window) as an
in-window menu bar on Windows and Linux. The app drives all commands from its
own UI and renderer keyboard shortcuts, so the native menu is redundant chrome.

Call `Menu.setApplicationMenu(null)` on non-macOS platforms during app startup.
macOS is intentionally excluded — its menu bar lives in the system bar and
provides the standard app/edit accelerators expected there.

Verified on Windows: the File/Edit/View/Window bar no longer appears; the tab
bar sits directly under the native title bar.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Dustella
Dustella merged commit bd84015 into main Jul 4, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant