Call subscribe method on start to fix clients stuck on old values

This commit is contained in:
Erik Reider 2021-08-01 22:12:21 +02:00
parent eca6bade15
commit 3e72026c55

View File

@ -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);