💥 ags(notifications): fix Notifications.sendNotification() too much arguments when using actions
This commit is contained in:
@@ -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) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user