summaryrefslogtreecommitdiff
path: root/lib/notifd/daemon.vala
diff options
context:
space:
mode:
authorAylur <[email protected]>2024-10-07 18:25:16 +0000
committerAylur <[email protected]>2024-10-07 18:25:16 +0000
commit2a3bb3af6fec942c36d20dbf502e8e91bd741bb5 (patch)
tree2ef5c0e2629a05f6d1dd471e2b8ec4244cd077af /lib/notifd/daemon.vala
parentd39d76e01f6dd1a910338cec9b926c40518682bd (diff)
notifd: add doc comments
they are not included in the generated docs or gir yet
Diffstat (limited to 'lib/notifd/daemon.vala')
-rw-r--r--lib/notifd/daemon.vala12
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/notifd/daemon.vala b/lib/notifd/daemon.vala
index b7a76df..d09564c 100644
--- a/lib/notifd/daemon.vala
+++ b/lib/notifd/daemon.vala
@@ -36,8 +36,12 @@ internal class AstalNotifd.Daemon : Object {
public signal void prop_changed(string prop);
// emitting an event from proxy doesn't seem to work
- public void emit_resolved(uint id, ClosedReason reason) { resolved(id, reason); }
- public void emit_action_invoked(uint id, string action) { action_invoked(id, action); }
+ public void emit_resolved(uint id, ClosedReason reason) throws Error {
+ resolved(id, reason);
+ }
+ public void emit_action_invoked(uint id, string action) throws Error {
+ action_invoked(id, action);
+ }
construct {
cache_directory = Environment.get_user_cache_dir() + "/astal/notifd";
@@ -157,7 +161,9 @@ internal class AstalNotifd.Daemon : Object {
private void write_state() {
var list = new Json.Builder().begin_array();
foreach (var n in notifications) {
- list.add_value(n.to_json());
+ if (!n.transient) {
+ list.add_value(n.to_json());
+ }
}
list.end_array();