mirror of
https://github.com/ErikReider/SwayNotificationCenter.git
synced 2024-10-05 21:08:40 +03:00
Call subscribe method on start to fix clients stuck on old values
This commit is contained in:
parent
eca6bade15
commit
3e72026c55
@ -15,6 +15,12 @@ namespace SwayNotificatonCenter {
|
||||
stderr.printf (e.message + "\n");
|
||||
}
|
||||
});
|
||||
// Update on start
|
||||
try {
|
||||
subscribe (notification_count (), get_dnd ());
|
||||
} catch (Error e) {
|
||||
stderr.printf (e.message + "\n");
|
||||
}
|
||||
}
|
||||
|
||||
public signal void subscribe (uint count, bool dnd);
|
||||
|
Loading…
Reference in New Issue
Block a user