mirror of
https://github.com/ErikReider/SwayNotificationCenter.git
synced 2024-11-28 21:31:19 +03:00
Moved cc subscription signal call into notidaemon
This commit is contained in:
parent
8319917b7b
commit
e9603dce1b
@ -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,
|
||||
|
@ -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 ());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user