Fixed clear_all_notifications not sending a close action #52
This commit is contained in:
@@ -208,7 +208,8 @@ namespace SwayNotificatonCenter {
|
|||||||
|
|
||||||
public void close_all_notifications () {
|
public void close_all_notifications () {
|
||||||
foreach (var w in list_box.get_children ()) {
|
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 {
|
try {
|
||||||
|
@@ -284,7 +284,7 @@ namespace SwayNotificatonCenter {
|
|||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void close_notification (bool is_timeout = false) {
|
public void close_notification (bool is_timeout = false) {
|
||||||
remove_noti_timeout ();
|
remove_noti_timeout ();
|
||||||
this.revealer.set_reveal_child (false);
|
this.revealer.set_reveal_child (false);
|
||||||
Timeout.add (this.transition_time, () => {
|
Timeout.add (this.transition_time, () => {
|
||||||
|
Reference in New Issue
Block a user