notifications: Send more signals when changing an action.
If the action own `notification` object changes, also emit the signal on the old one.
This commit is contained in:
parent
12f1908ef8
commit
7fb6883cac
|
@ -103,6 +103,16 @@ for _, prop in ipairs { "name", "icon", "notification", "icon_only" } do
|
|||
end
|
||||
end
|
||||
|
||||
local set_notif = action.set_notification
|
||||
|
||||
function action.set_notification(self, value)
|
||||
local old = self._private.notification
|
||||
set_notif(self, value)
|
||||
if old then
|
||||
old:emit_signal("property::actions")
|
||||
end
|
||||
end
|
||||
|
||||
--- Execute this action.
|
||||
--
|
||||
-- This only emits the `invoked` signal.
|
||||
|
|
Loading…
Reference in New Issue