Skip to content

Commit 44121e5

Browse files
committed
fix: handle left edge click to toggle launcher visibility
1. Added Connections component to listen for Panel's leftEdgeClicked signal 2. When left edge is clicked and this launcher has the minimum dock order, toggle launcher visibility 3. This ensures launcher responds to edge clicks when it's positioned at the leftmost dock position Log: Launcher now toggles visibility when clicking the left screen edge Influence: 1. Test clicking left screen edge when launcher is at leftmost position - should toggle launcher 2. Test clicking left screen edge when launcher is not at leftmost position - should not affect launcher 3. Verify launcher visibility toggles correctly between shown and hidden states 4. Test with multiple launchers/docks to ensure only the leftmost one responds 5. Verify launcher behavior consistency with other edge interactions fix: 处理左侧边缘点击以切换启动器可见性 1. 添加 Connections 组件监听 Panel 的 leftEdgeClicked 信号 2. 当点击左侧边缘且此启动器具有最小停靠顺序时,切换启动器可见性 3. 确保启动器在位于最左侧停靠位置时能响应边缘点击 Log: 启动器现在会在点击屏幕左侧边缘时切换可见性 Influence: 1. 测试当启动器位于最左侧位置时点击屏幕左侧边缘 - 应切换启动器状态 2. 测试当启动器不位于最左侧位置时点击屏幕左侧边缘 - 不应影响启动器 3. 验证启动器可见性在显示和隐藏状态之间正确切换 4. 测试多个启动器/停靠栏,确保只有最左侧的启动器响应 5. 验证启动器行为与其他边缘交互的一致性 PMS: BUG-345931
1 parent af51785 commit 44121e5

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

shell-launcher-applet/package/launcheritem.qml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,15 @@ AppletItem {
3838
}
3939
}
4040

41+
Connections {
42+
target: Panel
43+
function onLeftEdgeClicked(minOrder) {
44+
if (launcher.dockOrder == minOrder) {
45+
LauncherController.visible = !LauncherController.visible
46+
}
47+
}
48+
}
49+
4150
property point itemPos: Qt.point(0, 0)
4251
function updateItemPos()
4352
{

0 commit comments

Comments
 (0)