do not reset to default bindings if not needed...

This commit is contained in:
Ryan Fleury
2025-05-07 05:50:47 -07:00
parent 7048a8748c
commit afd1f0c713
+5 -1
View File
@@ -12689,7 +12689,11 @@ rd_frame(void)
//- rjf: if config did not define any keybindings for the user, then we need to build a sensible default
if(file_is_okay && kind == RD_CmdKind_OpenUser)
{
rd_cmd(RD_CmdKind_ResetToDefaultBindings);
RD_CfgList all_keybindings = rd_cfg_child_list_from_string(scratch.arena, file_root, str8_lit("keybindings"));
if(all_keybindings.count == 0)
{
rd_cmd(RD_CmdKind_ResetToDefaultBindings);
}
}
//- rjf: record recently-opened projects in the user