~mil/mepo

26eed3b86f15ebec4f47fad1aca35c62bedb15f8 — Miles Alan 1 year, 8 months ago 9138d89 pin_transfer
Fix bind_button group number argument
1 files changed, 1 insertions(+), 1 deletions(-)

M src/api/bind_button.zig
M src/api/bind_button.zig => src/api/bind_button.zig +1 -1
@@ 18,7 18,7 @@ pub const spec = .{

fn execute(mepo: *Mepo, args: [types.MepoFnNargs]types.MepoArg) !void {
    const visible_only_when_has_pins = args[0].Number == 1;
    const group_number = if (args[1].Number < 1) null else @floatToInt(u8, args[1].Number);
    const group_number = if (args[1].Number < 0) null else @floatToInt(u8, args[1].Number);
    const text = args[2].Text;
    const expression = args[3].Text;
    try bind_button(mepo, visible_only_when_has_pins, group_number, text, expression);