From 30f9ca1dde107b52690e97afe97758aef9d24192 Mon Sep 17 00:00:00 2001 From: Robertkill Date: Wed, 11 Feb 2026 15:46:23 +0800 Subject: [PATCH] fix: disable tray item interactions during collapse MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The enabled property was moved from the AppletItemButton to the individual input handlers (HoverHandler and TapHandler). Previously, the entire button was disabled when the tray was collapsing, which could affect visual state. Now only the input interactions are disabled while maintaining the button's visual appearance. This ensures that tray items remain visible but non-interactive during collapse animations. Log: Fixed tray items becoming visually disabled during collapse animation Influence: 1. Test tray collapse animation - items should remain visible but not respond to hover or clicks 2. Verify that tray items return to normal interactive state after collapse completes 3. Check that hover effects and click actions work normally when not collapsing 4. Ensure no visual glitches during the transition between states fix: 修复托盘项在折叠期间交互问题 将 enabled 属性从 AppletItemButton 移动到单独的输入处理器(HoverHandler 和 TapHandler)。之前当托盘折叠时整个按钮被禁用,这可能会影响视觉状态。 现在仅禁用输入交互,同时保持按钮的视觉外观。这确保托盘项在折叠动画期间保 持可见但不可交互。 Log: 修复托盘项在折叠动画期间变为视觉禁用状态的问题 Influence: 1. 测试托盘折叠动画 - 托盘项应保持可见但不响应悬停或点击 2. 验证托盘项在折叠完成后恢复正常交互状态 3. 检查悬停效果和点击动作在非折叠状态下正常工作 4. 确保状态转换期间没有视觉故障 PMS: BUG-350883 --- REUSE.toml | 6 ------ panels/dock/tray/package/ActionLegacyTrayPluginDelegate.qml | 3 +-- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/REUSE.toml b/REUSE.toml index d92a0b130..35e9e7679 100644 --- a/REUSE.toml +++ b/REUSE.toml @@ -87,12 +87,6 @@ precedence = "aggregate" SPDX-FileCopyrightText = "None" SPDX-License-Identifier = "CC0-1.0" -[[annotations]] -path = "panels/dock/tray/**" -precedence = "aggregate" -SPDX-FileCopyrightText = "UnionTech Software Technology Co., Ltd." -SPDX-License-Identifier = "GPL-3.0-or-later" - [[annotations]] path = "toolGenerate/**/**" precedence = "aggregate" diff --git a/panels/dock/tray/package/ActionLegacyTrayPluginDelegate.qml b/panels/dock/tray/package/ActionLegacyTrayPluginDelegate.qml index ddb79877e..c0b4f950a 100644 --- a/panels/dock/tray/package/ActionLegacyTrayPluginDelegate.qml +++ b/panels/dock/tray/package/ActionLegacyTrayPluginDelegate.qml @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. +// SPDX-FileCopyrightText: 2024-2026 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later @@ -31,7 +31,6 @@ AppletItemButton { visible: !Drag.active && itemVisible hoverEnabled: inputEventsEnabled - enabled: !DDT.TraySortOrderModel.isCollapsing function updatePluginMargins() {