forked from Shinonome/dots-hyprland
bar: tray: make action trigger on press
This commit is contained in:
@@ -19,7 +19,7 @@ MouseArea {
|
|||||||
acceptedButtons: Qt.LeftButton | Qt.RightButton
|
acceptedButtons: Qt.LeftButton | Qt.RightButton
|
||||||
implicitWidth: 20
|
implicitWidth: 20
|
||||||
implicitHeight: 20
|
implicitHeight: 20
|
||||||
onClicked: (event) => {
|
onPressed: (event) => {
|
||||||
switch (event.button) {
|
switch (event.button) {
|
||||||
case Qt.LeftButton:
|
case Qt.LeftButton:
|
||||||
item.activate();
|
item.activate();
|
||||||
|
|||||||
Reference in New Issue
Block a user