Fixed clear_all_notifications not sending a close action #52

This commit is contained in:
Erik Reider
2022-01-06 18:09:32 +01:00
parent 98c5fb7e09
commit 1d0ff74679
2 changed files with 3 additions and 2 deletions

View File

@@ -208,7 +208,8 @@ namespace SwayNotificatonCenter {
public void close_all_notifications () {
foreach (var w in list_box.get_children ()) {
if (w != null) list_box.remove (w);
Notification noti = (Notification) w;
if (noti != null) noti.close_notification (false);
}
try {

View File

@@ -284,7 +284,7 @@ namespace SwayNotificatonCenter {
return value;
}
private void close_notification (bool is_timeout = false) {
public void close_notification (bool is_timeout = false) {
remove_noti_timeout ();
this.revealer.set_reveal_child (false);
Timeout.add (this.transition_time, () => {