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:
commit
7ed4dd620b
|
@ -69,6 +69,9 @@ local function sendNotificationClosed(notificationId, reason)
|
||||||
if reason <= 0 then
|
if reason <= 0 then
|
||||||
reason = cst.notification_closed_reason.undefined
|
reason = cst.notification_closed_reason.undefined
|
||||||
end
|
end
|
||||||
|
if reason == cst.notification_closed_reason.dismissed_by_user then
|
||||||
|
sendActionInvoked(notificationId, "default")
|
||||||
|
end
|
||||||
if bus_connection then
|
if bus_connection then
|
||||||
bus_connection:emit_signal(nil, "/org/freedesktop/Notifications",
|
bus_connection:emit_signal(nil, "/org/freedesktop/Notifications",
|
||||||
"org.freedesktop.Notifications", "NotificationClosed",
|
"org.freedesktop.Notifications", "NotificationClosed",
|
||||||
|
|
Loading…
Reference in New Issue