Skip to content

Commit

Permalink
fix: avoid right click launch app in window mode
Browse files Browse the repository at this point in the history
小窗口模式的左侧应用列表点击鼠标右键也会触发 clicked 信号,会导致应
用被启动。看上去是捕获右键的 TapHandler 添加后会导致 clicked() 被触
发。这里通过添加另一个 TapHandler 处理左键来绕过这个问题。

Issue: linuxdeepin/developer-center#6290
Log:
  • Loading branch information
BLumia committed Dec 15, 2023
1 parent f05aa8d commit b343137
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions qml/WindowedFrame.qml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,10 @@ StackView {
launchApp(desktopId)
}

onClicked: {
launchApp(desktopId)
TapHandler {
onTapped: {
launchApp(desktopId)
}
}

background: P.ButtonPanel {
Expand Down

0 comments on commit b343137

Please sign in to comment.