Commit 83bcdab0 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[Notifications] Invoke default action on drag enter

parent 4a0ed516
Pipeline #199873 passed with stage
in 9 minutes and 29 seconds
......@@ -114,6 +114,24 @@ PlasmaCore.Dialog {
onPressed: wantsFocus = true
onContainsMouseChanged: wantsFocus = wantsFocus && containsMouse
DropArea {
anchors.fill: parent
onEntered: {
if (notificationPopup.hasDefaultAction) {
dragActivationTimer.start();
} else {
drag.accepted = false;
}
}
}
Timer {
id: dragActivationTimer
interval: 250 // same as Task Manager
repeat: false
onTriggered: notificationPopup.defaultActionInvoked()
}
// Visual flourish for critical notifications to make them stand out more
Rectangle {
id: criticalNotificationLine
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment