From 163cd0de497274ef09d2fedaa0e793d759978a8a Mon Sep 17 00:00:00 2001 From: wjyrich Date: Wed, 1 Apr 2026 14:23:55 +0800 Subject: [PATCH] fix: hide status indicator when title is active MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The status indicator was incorrectly showing when the title was active in Efficient display mode. This fix adds a condition to hide the status indicator when `root.titleActive` is true, ensuring the indicator only appears when appropriate. Log: Fixed status indicator visibility issue in dock task manager Influence: 1. Test dock task manager in Efficient display mode 2. Verify status indicator hides when window title is active 3. Check status indicator shows correctly when title is not active 4. Test with multiple windows open 5. Verify behavior across different display modes fix: 修复状态指示器在标题激活时错误显示的问题 状态指示器在高效显示模式下标题激活时错误显示。此修复添加了当 `root.titleActive` 为 true 时隐藏状态指示器的条件,确保指示器只在适当的 时候显示。 Log: 修复了任务管理器中状态指示器可见性问题 Influence: 1. 在高效显示模式下测试任务管理器 2. 验证状态指示器在窗口标题激活时隐藏 3. 检查状态指示器在标题未激活时正确显示 4. 测试多个窗口打开的情况 5. 验证不同显示模式下的行为 --- panels/dock/taskmanager/package/AppItem.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panels/dock/taskmanager/package/AppItem.qml b/panels/dock/taskmanager/package/AppItem.qml index 000956d2b..42edd3e1d 100644 --- a/panels/dock/taskmanager/package/AppItem.qml +++ b/panels/dock/taskmanager/package/AppItem.qml @@ -140,7 +140,7 @@ Item { width: root.statusIndicatorSize height: root.statusIndicatorSize anchors.centerIn: iconContainer - visible: root.displayMode === Dock.Efficient && root.windows.length > 0 + visible: root.displayMode === Dock.Efficient && root.windows.length > 0 && !root.titleActive } Connections {