Remove notification on CLOSED_BY_CLOSENOTIFICATION (#31)

Co-authored-by: Christopher Lübbemeier <luebbemeier@metaventis.com>
This commit is contained in:
christopher-l
2021-12-14 11:55:54 +01:00
committed by GitHub
parent 75894f50ff
commit fff3839c04

View File

@@ -81,8 +81,9 @@ namespace SwayNotificatonCenter {
NotiWindow.instance (dbusInit).close_all_notifications ();
}
// Only remove the popup without removing the it from the panel
public void CloseNotification (uint32 id) throws DBusError, IOError {
NotiWindow.instance (dbusInit).close_notification (id);
dbusInit.ccDaemon.close_notification (id);
NotificationClosed (id, ClosedReasons.CLOSED_BY_CLOSENOTIFICATION);
}