Repository navigation
fix(desktop): 隐藏启动窗口菜单并修复菜单语言 #169 - #178
Merged
Merged
Conversation
This was referenced Oct 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
启动进度和启动失败窗口会继承应用菜单,出现与页面无关的英文 Edit / View;主窗口切换到英文后,“检查更新”也仍显示中文。
本 PR 在 Windows/Linux 的启动与恢复窗口移除菜单,并在语言或快捷键触发应用菜单重建后保持移除状态。主窗口的编辑、视图、退出及检查更新使用当前界面语言;编辑和缩放继续使用 Electron 原生 role,保留快捷键。macOS 保留应用菜单,不对窗口调用 removeMenu。
验证:锁定 DSH 0.2.1-rc.2 构建桌面壳成功;Windows Electron 44.0.0 实测启动/恢复窗口在语言切换及 Alt 按键后无菜单,中英文菜单、剪贴板、快捷键及原有桌面桥接冒烟通过;启动错误和窗口可见性相关 11 项测试通过。macOS 原生验证交由本 PR 双平台 CI,本机未执行。
Fixes #169