Skip to content

fix(desktop): window close hides to background instead of showing quit dialog#673

Merged
mrcfps merged 1 commit intomainfrom
fix/close-hides-to-background
Mar 30, 2026
Merged

fix(desktop): window close hides to background instead of showing quit dialog#673
mrcfps merged 1 commit intomainfrom
fix/close-hides-to-background

Conversation

@lefarcen
Copy link
Copy Markdown
Collaborator

What

Remove the quit dialog when closing the window. Instead, follow standard macOS behavior.

Why

Users expect clicking the red traffic light to hide the app to background (like Slack, Discord, Telegram). The quit dialog was confusing and added friction.

How

  • Window close (red traffic light) β†’ window.hide(), services keep running in background
  • Cmd+Q / Dock Quit β†’ full teardownLaunchdServices and app.exit(0)
  • Removed showQuitDialog, getQuitDialogLocale, i18n strings, dialog import
  • -92 lines of dialog code, +11 lines of simpler hide logic

Behavior matrix

Action Before After
Red traffic light Shows 3-choice dialog Hides to background
Cmd+Q Redirected to dialog Direct teardown + exit
Dock Quit Redirected to dialog Direct teardown + exit
Click Dock icon while hidden Shows window Shows window (unchanged)

Checklist

  • pnpm typecheck passes
  • pnpm test passes (58 files, 614 tests)
  • Tests updated: dialog tests removed, hide-to-background tests added

πŸ€– Generated with Claude Code

…t dialog

- Red traffic light / window close β†’ hide window, services keep running
- Cmd+Q / Dock Quit β†’ full teardown and exit (no dialog)
- Removed quit dialog, i18n strings, and showQuitDialog function
- Updated tests: dialog-related tests replaced with hide-to-background tests
@mrcfps mrcfps merged commit db1761c into main Mar 30, 2026
12 checks passed
@mrcfps mrcfps deleted the fix/close-hides-to-background branch March 30, 2026 10:01
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.

2 participants