Moved cc subscription signal call into notidaemon

This commit is contained in:
Erik Reider 2022-05-13 14:15:47 +02:00
parent 8319917b7b
commit e9603dce1b
2 changed files with 4 additions and 7 deletions

View File

@ -313,13 +313,6 @@ namespace SwayNotificationCenter {
break;
}
}
try {
swaync_daemon.subscribe (notification_count (),
swaync_daemon.get_dnd (),
get_visibility ());
} catch (Error e) {
stderr.printf (e.message + "\n");
}
}
public void add_notification (NotifyParams param,

View File

@ -61,6 +61,10 @@ namespace SwayNotificationCenter {
if (!timeout) {
control_center.close_notification (id);
NotificationClosed (id, ClosedReasons.DISMISSED);
swaync_daemon.subscribe (control_center.notification_count (),
dnd,
control_center.get_visibility ());
}
}