switch reg cmd name parameterization from using general string slot, to its own dedicated slot, so that the string can be used

This commit is contained in:
Ryan Fleury committed 2024-10-11 10:38:28 -07:00
1 parent f44c94c3ca
commit 4757c4dafd
6 files changed
+26 -21

No files matched your search

+1 -1
View File
@@ -341,7 +341,7 @@ rd_cmd_list_menu_buttons(U64 count, String8 *cmd_names, U32 *fastpath_codepoints
UI_Signal sig = rd_cmd_spec_button(cmd_names[idx]);
if(ui_clicked(sig))
{
rd_cmd(RD_CmdKind_RunCommand, .string = cmd_names[idx]);
rd_cmd(RD_CmdKind_RunCommand, .cmd_name = cmd_names[idx]);
ui_ctx_menu_close();
RD_Window *window = rd_window_from_handle(rd_regs()->window);
window->menu_bar_focused = 0;