From 336ea8684e4dfa3807d342ef8394e2a668d0f625 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Thu, 29 Aug 2024 16:52:26 +0200 Subject: [PATCH] feat: update thespian and add delay_send_cancellable tags --- build.zig.zon | 4 ++-- src/tui/status/clock.zig | 2 +- src/tui/status/minilog.zig | 2 +- src/tui/tui.zig | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build.zig.zon b/build.zig.zon index d9f0feb..50dfa8c 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -18,8 +18,8 @@ .hash = "1220220dbc7fe91c1c54438193ca765cebbcb7d58f35cdcaee404a9d2245a42a4362", }, .thespian = .{ - .url = "https://github.com/neurocyte/thespian/archive/9462ef22c6c4b6dd4ca049dc15b2bae6863260f6.tar.gz", - .hash = "122019bbccfb6ea58794395b20d5dee87b6fd829cc4c85f0a4e487afc6a6aeedaa71", + .url = "https://github.com/neurocyte/thespian/archive/426a012d8285f235897a1a83884c752fc1fd36b0.tar.gz", + .hash = "12208545b4df3be0a33609d8686770c58cc8bbb8284fe4f168e9b42b01350cec82ab", }, .themes = .{ .url = "https://github.com/neurocyte/flow-themes/releases/download/master-803da089c5a0fc3b4513a7c34afe9bdaff83efdc/flow-themes.tar.gz", diff --git a/src/tui/status/clock.zig b/src/tui/status/clock.zig index 193950e..3a0409b 100644 --- a/src/tui/status/clock.zig +++ b/src/tui/status/clock.zig @@ -96,5 +96,5 @@ fn update_tick_timer(self: *Self) void { t.deinit(); self.tick_timer = null; } - self.tick_timer = tp.self_pid().delay_send_cancellable(self.allocator, delay, .{"CLOCK"}) catch null; + self.tick_timer = tp.self_pid().delay_send_cancellable(self.allocator, "clock.tick_timer", delay, .{"CLOCK"}) catch null; } diff --git a/src/tui/status/minilog.zig b/src/tui/status/minilog.zig index 85220a4..67e104f 100644 --- a/src/tui/status/minilog.zig +++ b/src/tui/status/minilog.zig @@ -122,7 +122,7 @@ fn update_clear_timer(self: *Self) !void { t.deinit(); self.clear_timer = null; } - self.clear_timer = try tp.self_pid().delay_send_cancellable(self.msg.allocator, delay, .{ "MINILOG", self.msg_counter }); + self.clear_timer = try tp.self_pid().delay_send_cancellable(self.msg.allocator, "minilog.clear_timer", delay, .{ "MINILOG", self.msg_counter }); } fn set(self: *Self, msg: []const u8, level: Level) !void { diff --git a/src/tui/tui.zig b/src/tui/tui.zig index 6657e3b..c65bc51 100644 --- a/src/tui/tui.zig +++ b/src/tui/tui.zig @@ -192,7 +192,7 @@ fn update_mouse_idle_timer(self: *Self) void { t.deinit(); self.mouse_idle_timer = null; } - self.mouse_idle_timer = tp.self_pid().delay_send_cancellable(self.a, delay, .{"MOUSE_IDLE"}) catch return; + self.mouse_idle_timer = tp.self_pid().delay_send_cancellable(self.a, "tui.mouse_idle_timer", delay, .{"MOUSE_IDLE"}) catch return; } fn receive(self: *Self, from: tp.pid_ref, m: tp.message) tp.result {