Skip to content

fix: settings open makes window focus and in-front#245

Closed
jakehwll wants to merge 1 commit intomainfrom
jakehwll/settings-window-icon-focus
Closed

fix: settings open makes window focus and in-front#245
jakehwll wants to merge 1 commit intomainfrom
jakehwll/settings-window-icon-focus

Conversation

@jakehwll
Copy link
Copy Markdown

This pull-request makes it so that when you press the Settings button to open the settings menu, it will show in the apps icon in the dock and also become the top most focused window.

preview-coder-settings-focus-open.mp4

@jakehwll jakehwll requested a review from ethanndickson March 26, 2026 09:01
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0f9095a33f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@MainActor
func appActivate() {
NSApp.activate()
NSApp.activate(ignoringOtherApps: true)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep appActivate from stealing focus in background callbacks

Switching appActivate() to NSApp.activate(ignoringOtherApps: true) changes behavior for every caller, not only the Settings button. UpdaterService.updater(_:didFindValidUpdate:) invokes appActivate() when automatic update checks find a release, so this commit now forces the app to the foreground even if the user is actively working in another application. That makes background update discovery interruptive and is a regression in user experience outside the Settings flow.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Honestly I'm a fan of this, I think that if we're opening a window it makes genuine sense being the only way to access this is from the menubar.

Thoughts?

@jakehwll
Copy link
Copy Markdown
Author

Oops #224 already grabbed this

@jakehwll jakehwll closed this Mar 26, 2026
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