Merge pull request #3863 from BarbUk/fix/notification_default_action_when_dismissed_by_user

Send a default action when notification is closed by user
This commit is contained in:
mergify[bot] 2023-10-12 09:57:10 +00:00 committed by GitHub
commit 7ed4dd620b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -69,6 +69,9 @@ local function sendNotificationClosed(notificationId, reason)
if reason <= 0 then
reason = cst.notification_closed_reason.undefined
end
if reason == cst.notification_closed_reason.dismissed_by_user then
sendActionInvoked(notificationId, "default")
end
if bus_connection then
bus_connection:emit_signal(nil, "/org/freedesktop/Notifications",
"org.freedesktop.Notifications", "NotificationClosed",