Send a default action when notification is closed by user
This commit is contained in:
parent
aa8c7c6e27
commit
5daae2bb5d
|
@ -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