Unverified Commit 3f85c452 authored by Erik Reider's avatar Erik Reider Committed by GitHub

Fixed swaync-client --close-all not closing the actual noti layer window (#516)

parent 35d3a14f
...@@ -151,7 +151,6 @@ namespace SwayNotificationCenter { ...@@ -151,7 +151,6 @@ namespace SwayNotificationCenter {
public void change_visibility (bool value) { public void change_visibility (bool value) {
if (!value) { if (!value) {
close_all_notifications (); close_all_notifications ();
close ();
} else { } else {
this.set_anchor (); this.set_anchor ();
} }
...@@ -169,6 +168,8 @@ namespace SwayNotificationCenter { ...@@ -169,6 +168,8 @@ namespace SwayNotificationCenter {
remove_notification (notification, false); remove_notification (notification, false);
} }
} }
close ();
} }
private void remove_notification (Notification ? noti, bool dismiss) { private void remove_notification (Notification ? noti, bool dismiss) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment