macOS: the Save Diagnostics panel goes behind the editor after an app switch and can't be reached
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 78/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- electron, typescript
- 领域
- desktop-dev
调研方向
从 electron/messageBox.ts 中的 showSaveDialogOver(L44-56)开始,阅读其关于 #743 的注释,了解 owner 窗口如何将面板变成 sheet,然后与 electron/ipc/handlers.ts(L1990-1994)中的 exportDiagnosticFile 对比,后者调用 dialog.showSaveDialog 时没有 owner。追踪菜单和 tray 入口点如何到达该 handler,以便将聚焦的窗口作为 owner 传入。当诊断面板附加到编辑器窗口并在 Cmd+Tab 后仍保持在前台时即完成;验证需要 macOS 构建。
由索引模型根据 Issue 内容生成。
描述
On macOS, the save panel opened by Save Diagnostics ends up under the editor window after an app switch. It can then be neither seen nor clicked.
Steps
- In the editor, wordmark menu → Save Diagnostics. The "Save Diagnostic File" panel opens in front.
- Bring another app to the front (Safari here), then come back with Cmd+Tab.
Expected: the panel stays in front of the editor, or is attached to it as a sheet.
Actual
- The editor comes back above the panel. The window list holds the panel under the editor, invisible and out of the mouse's reach.
- Return does nothing, since the panel is not key. The Window menu offers only Minimize, Zoom and Bring All to Front.
- The save could only be finished through accessibility (AXPress on its Save button). The bundle was then written correctly.
Seen on 2.4.0-rc.1 (DMG), macOS 27.0.1, Mac mini M1.
Why
exportDiagnosticFile calls dialog.showSaveDialog with no owner window (handlers.ts#L1990-L1994). The other save panels go through showSaveDialogOver (messageBox.ts#L44-L56). Its comment describes exactly this trap (#743): unowned, a macOS save panel is a free-floating window that a click sends behind the editor; owned, it is a sheet on that window.
Fix direction
Open the diagnostics panel with showSaveDialogOver, owned by the window the request came from. The menu and tray entry points can pass the focused window.
- 主要语言
- TypeScript
- 星标
- 3.7k
- 派生
- 231
- 平均合并
- 1 天 8 小时
- 30 天内合并 PR
- 150
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
getopenscreen/openscreen 的其他 Issue
-
A freshly imported video or image shows 0:00.0 on its Media card until it is placed on the timeline未关闭bug
难度 2/5 1-3 小时 新手友好度 75/100
getopenscreen/openscreen#1663 ·
维护者通常 1 天内回复
-
Native review wanted: machine-translated recording bar tooltips (14 locales)可能已有人在做 @auberginewly 于 45 天前认领。 未关闭good first issue help wanted
难度 2/5 1-3 小时 新手友好度 68/100
getopenscreen/openscreen#913 · 5 条评论 ·
维护者通常 1 天内回复
-
Small papercuts from the 2.4.0-rc.1 end-to-end pass可能已有人在做 @EtienneLescot 今天认领。 未关闭bug
难度 3/5 1-2 天 新手友好度 52/100
getopenscreen/openscreen#1668 ·
维护者通常 1 天内回复
-
GNOME Wayland: the Notes window does not stay on top可能已有人在做 @EtienneLescot 今天认领。 未关闭bug
难度 4/5 3-5 天 新手友好度 28/100
getopenscreen/openscreen#1666 ·
维护者通常 1 天内回复
-
bug
难度 3/5 1-2 天 新手友好度 64/100
getopenscreen/openscreen#1665 ·
维护者通常 1 天内回复
查看 getopenscreen/openscreen 的全部 Issue
相似的 Issue
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
难度 1/5 1 小时以内 新手友好度 92/100
lingdojo/kana-dojo#34545 · 1 条评论 · 5 个 reaction ·
维护者通常 1 天内回复
-
blocklist addition
难度 1/5 1 小时以内 新手友好度 82/100
MetaMask/eth-phishing-detect#315455 ·
维护者通常 1 天内回复
-
area: telegram bug
难度 2/5 1-3 小时 新手友好度 76/100
griffinwork40/agent-afk#5275 ·
维护者通常 1 天内回复
-
documentation
难度 2/5 1-3 小时 新手友好度 68/100
erkamyaman/rust-anything#371 ·
维护者通常 1 天内回复
-
Widget: match the chat bubble color to the rest of the widget可能已有人在做 @sethr07 今天认领。 未关闭enhancement frontend help wanted
难度 2/5 半天 新手友好度 75/100
DeadantCo/answerLoopsdev#68 · 3 条评论 ·