Repository navigation
Conversation
1. Root cause: onHideStateChanged handler only restarted hideTimer when hideState changed to Dock.Hide, but omitted calling Panel.requestClosePopup() to close the overflow popup 2. Fix: add Panel.requestClosePopup() call alongside hideTimer.restart() in the Dock.Hide branch, matching the pattern used by sibling handlers like onPositionChanged and onDockScreenChanged 3. Impact: overflow popup now closes when dock transitions to hidden state, no change to show/hide animation logic or normal display Log: 修复任务栏隐藏时溢出区域弹出层未关闭的问题 Influence: 1. Test overflow popup closes when dock hides with smart-hide mode 2. Test overflow popup still works normally when dock is visible 3. Verify dock show/hide animation is not affected 4. Test overflow popup closes when dock moves to another screen fix: 修复任务栏隐藏时溢出区域弹出层未关闭的问题 1. 根因:onHideStateChanged handler 在 hideState 变为 Dock.Hide 时 仅重启 hideTimer,遗漏了调用 Panel.requestClosePopup() 关闭溢出 区域弹出层 2. 方案:在 Dock.Hide 分支中补充 Panel.requestClosePopup() 调用, 与 onPositionChanged、onDockScreenChanged 等同级 handler 保持 一致的弹出层关闭行为 3. 影响:任务栏隐藏时溢出区域弹出层将正常关闭,不影响显示/隐藏 动画逻辑和正常显示行为 Log: 修复任务栏隐藏时溢出区域弹出层未关闭的问题 Influence: 1. 测试智能隐藏模式下任务栏隐藏时溢出区域弹出层是否关闭 2. 测试任务栏可见时溢出区域弹出层功能是否正常 3. 验证任务栏显示/隐藏动画不受影响 4. 测试任务栏切换屏幕时溢出区域弹出层是否关闭 PMS: BUG-384781
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: mhduiy The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
CLA Assistant Lite bot: shuttle slave seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. |
Reviewer's GuideUIClose the overflow popup when the dock enters the hidden state.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="panels/dock/package/main.qml" line_range="1079" />
<code_context>
return
if (Panel.hideState === Dock.Hide) {
hideTimer.restart()
+ Panel.requestClosePopup()
} else if (Panel.hideState === Dock.Show) {
hideTimer.stop()
</code_context>
<issue_to_address>
**Unrelated windows close on hide**
When the dock transitions to `Dock.Hide` before its popup window has been created, `onRequestClosePopup` passes a null `popupWindow` to `DS.closeChildrenWindows`; `Utility::allChildrenWindows` treats every top-level window as a child of null, so the hide transition closes unrelated application windows.
Guard the `closeChildrenWindows` call against a null popup window.
</issue_to_address>| return | ||
| if (Panel.hideState === Dock.Hide) { | ||
| hideTimer.restart() | ||
| Panel.requestClosePopup() |
There was a problem hiding this comment.
🟠 High · Unrelated windows close on hide
When the dock transitions to Dock.Hide before its popup window has been created, onRequestClosePopup passes a null popupWindow to DS.closeChildrenWindows; Utility::allChildrenWindows treats every top-level window as a child of null, so the hide transition closes unrelated application windows.
Guard the closeChildrenWindows call against a null popup window.
Prompt for AI agents
In `panels/dock/package/main.qml` at line 1079:
**Unrelated windows close on hide**
When the dock transitions to `Dock.Hide` before its popup window has been created, `onRequestClosePopup` passes a null `popupWindow` to `DS.closeChildrenWindows`; `Utility::allChildrenWindows` treats every top-level window as a child of null, so the hide transition closes unrelated application windows.
Guard the `closeChildrenWindows` call against a null popup window.
|
|
插件面板打开时任务栏保持显示,行为合理,可以接受; 关闭此PR |
修复 PMS Bug 384781
问题现象
任务栏隐藏后,打开溢出区域并移出鼠标焦点到桌面,溢出区域还会一直保持展示。
根因
onHideStateChangedhandler(panels/dock/package/main.qml)在Panel.hideState变为Dock.Hide时仅调用hideTimer.restart(),遗漏了Panel.requestClosePopup()。同文件中onPositionChanged、onDockScreenChanged等同级 handler 均在隐藏/切换场景调用requestClosePopup()关闭弹出层,唯独此 handler 缺失。修复方案
在
Dock.Hide分支中补充Panel.requestClosePopup()调用,与同级 handler 行为一致。改动
panels/dock/package/main.qml(1 行新增)onHideStateChanged的Dock.Hide分支中补充Panel.requestClosePopup()影响评估
Panel.requestClosePopup()为本文件已有函数,在 7 处被调用,模式一致Dock.Show分支的显示/隐藏动画逻辑PMS: BUG-384781
Summary by Sourcery
Bug Fixes: