notificationDaemon: Pass the correct id to makeButton()
The function expects the action's ID, not the notification's one. https://bugzilla.gnome.org/show_bug.cgi?id=710596
This commit is contained in:
parent
4b09d57ec2
commit
61c5b8e7d2
@ -436,7 +436,7 @@ const FdoNotificationDaemon = new Lang.Class({
|
||||
if (actionId == 'default') {
|
||||
hasDefaultAction = true;
|
||||
} else {
|
||||
notification.addButton(this._makeButton(id, label, useActionIcons), Lang.bind(this, function() {
|
||||
notification.addButton(this._makeButton(actionId, label, useActionIcons), Lang.bind(this, function() {
|
||||
this._emitActionInvoked(ndata.id, actionId);
|
||||
}));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user