Skip to content

Commit

Permalink
notifications: Change desktop notification buttons order
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelmardojai committed May 2, 2023
1 parent 6a95061 commit e345b27
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/notification.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,17 @@ export default class Notification extends GObject.Object {
)
);

const hidden = !Gtk.Application.get_default().get_active_window().visible
if (hidden) {
notification.add_button(_('Show Forge Sparks'), 'app.activate');
}

notification.add_button_with_target(
_('Mark as Read'),
'app.mark-read',
GLib.Variant.new_string(this.id)
);

const hidden = !Gtk.Application.get_default().get_active_window().visible
if (hidden) {
notification.add_button(_('Show Forge Sparks'), 'app.activate');
}

return notification;
}

Expand Down

0 comments on commit e345b27

Please sign in to comment.