Repository navigation
feat: 支持 macOS 关闭窗口后常驻与 Dock 恢复 - #17
Open
Clarence12138 wants to merge 1 commit into
Open
Clarence12138 wants to merge 1 commit into
Clarence12138 wants to merge 1 commit into
Conversation
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.
问题
macOS 主窗口关闭后被销毁,无法提供关闭窗口后继续运行、点击 Dock 恢复同一工作环境的桌面行为;无边框窗口的默认 AppKit Close 动作也不能满足 Cmd+W 关闭需求。
变更
RunEvent::Reopen,显示、取消最小化并聚焦已有主窗口。Cmd+W,对焦点窗口调用 Tauriclose(),保留 CloseRequested 路径。Cmd+Q/ Quit 继续走独立退出确认和进程清理路径;分离的扩展窗口保留各自关闭逻辑。基线与范围
独立基于最新
Skitre/PiCove:main(102d9e1),提取4bdde6d;不依赖其他 PR,无新增依赖、不修改 Pi SDK。验证
在 Apple Silicon macOS / Node 24.5.0 / pnpm 9.15.0 下:
pnpm install --frozen-lockfilepnpm verify:quick(docs、fixtures、release metadata、lint、typecheck、完整 JS 测试)pnpm buildpnpm test:rust:122 passed、1 ignored。pnpm lint:rust:Rust fmt 与 Clippy-D warnings通过。git diff --check手工验收
生产构建成功,Vite 仍提示部分 chunk 超过 500 kB。自动化通过不代表原生 GUI、安装包或跨平台发布验收已完成。