Repository navigation
fix(windows): separate taskbar minimization from close to tray - #199
Merged
zouyonghe merged 1 commit intoNov 21, 2026
Merged
Conversation
Leave taskbar minimization to Windows. Prompt on close and persist an explicitly remembered choice, with a tray action to restore the prompt.
There was a problem hiding this comment.
Hey - I've reviewed your changes and they look great!
Sourcery assessment
Needs a human reviewer. A remembered Windows close choice is persisted and can make later closes quit the app or hide it to the tray; if the choice is wrong, it can be reset from the tray menu. The saved setting may remain after reverting and take effect again if this code returns, but it is bounded and repairable.
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.
Windows 的窗口最小化会触发失焦事件。旧逻辑在检测到最小化后又隐藏窗口,导致点击最小化按钮或任务栏图标时,窗口可能直接从任务栏消失到托盘。
Summary / 改动概述
Verification / 验证方式
LC_ALL=C make test lint通过:276 项 Rust 测试、224 项脚本测试。现有signal_probe_reports_a_missing_pid_as_exited测试依赖kill的英文错误提示,在本机默认日语 locale 下会失败;本 PR 不改动该逻辑。x86_64-pc-windows-gnu交叉构建通过。Checklist / 检查清单
windows-sys的功能。Summary by Sourcery
Separate Windows taskbar minimization from tray hiding and provide a configurable close workflow with persistence and reset support.
New Features:
Bug Fixes:
Enhancements:
Build:
Documentation:
Tests: