fix: task_palette should not pass palette entry text to add_task

This commit is contained in:
CJ van den Berg 2025-08-13 17:52:23 +02:00
parent 2414f3b00f
commit c640c3f04b
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -107,7 +107,7 @@ fn select(menu: **Type.MenuState, button: *Type.ButtonState) void {
buffer_name.writer().print("*{s}*", .{entry.label}) catch {};
if (entry.command) |cmd| {
tp.self_pid().send(.{ "cmd", "exit_overlay_mode" }) catch |e| menu.*.opts.ctx.logger.err(module_name, e);
tp.self_pid().send(.{ "cmd", cmd, .{entry.label} }) catch |e| menu.*.opts.ctx.logger.err(module_name, e);
tp.self_pid().send(.{ "cmd", cmd, .{} }) catch |e| menu.*.opts.ctx.logger.err(module_name, e);
} else {
project_manager.add_task(entry.label) catch {};
tp.self_pid().send(.{ "cmd", "exit_overlay_mode" }) catch |e| menu.*.opts.ctx.logger.err(module_name, e);