Skip to content

fix: 修复独立插件窗口重入未前置#504

Open
kuraxii wants to merge 2 commits into
ZToolsCenter:mainfrom
kuraxii:fix/detached-window-reenter-focus
Open

fix: 修复独立插件窗口重入未前置#504
kuraxii wants to merge 2 commits into
ZToolsCenter:mainfrom
kuraxii:fix/detached-window-reenter-focus

Conversation

@kuraxii
Copy link
Copy Markdown

@kuraxii kuraxii commented May 17, 2026

fix: #503

变更内容

  • 复用已存在的独立插件窗口时,显式调用 show() 后再执行 focus()
  • 补充注释说明 macOS 下该处理的原因

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the detached window management logic to ensure windows are properly brought to the foreground on macOS by calling show() before focus(). The reviewer suggested refining this implementation to avoid redundant calls when a window is minimized and to limit the show() call specifically to the macOS platform to prevent potential side effects on other systems.

Comment thread src/main/core/detachedWindowManager.ts
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.

[Bug] macOS 独立插件窗口回车重入未前置

1 participant