💥 ags(notifications): fix Notifications.sendNotification() too much arguments when using actions

This commit is contained in:
retrozinndev
2025-05-11 21:35:21 -03:00
parent c06d06ee02
commit 879a787c8c
+1 -1
View File
@@ -154,7 +154,7 @@ class Notifications extends GObject.Object {
"-i", props.image "-i", props.image
] : []), ...(props.actions ? props.actions.map((action) => ] : []), ...(props.actions ? props.actions.map((action) =>
[ "-A", action.text ] [ "-A", action.text ]
).join("\s") : []), ...(props.replaceId ? [ ).flat(2) : []), ...(props.replaceId ? [
"-r", props.replaceId.toString() "-r", props.replaceId.toString()
] : []), props.summary, props.body ? props.body : "" ] : []), props.summary, props.body ? props.body : ""
]).then((stdout) => { ]).then((stdout) => {