mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-06 13:58:40 +00:00
fix open-recent-project according to recent_project schema
This commit is contained in:
@@ -14159,9 +14159,11 @@ rd_frame(void)
|
|||||||
case RD_CmdKind_OpenRecentProject:
|
case RD_CmdKind_OpenRecentProject:
|
||||||
{
|
{
|
||||||
RD_Cfg *cfg = rd_cfg_from_id(rd_regs()->cfg);
|
RD_Cfg *cfg = rd_cfg_from_id(rd_regs()->cfg);
|
||||||
if(str8_match(cfg->string, str8_lit("recent_project"), 0))
|
RD_Cfg *path = rd_cfg_child_from_string(cfg, str8_lit("path"));
|
||||||
|
if(str8_match(cfg->string, str8_lit("recent_project"), 0) &&
|
||||||
|
path->first->string.size != 0)
|
||||||
{
|
{
|
||||||
rd_cmd(RD_CmdKind_OpenProject, .file_path = cfg->first->string);
|
rd_cmd(RD_CmdKind_OpenProject, .file_path = path->first->string);
|
||||||
}
|
}
|
||||||
}break;
|
}break;
|
||||||
case RD_CmdKind_OpenUser:
|
case RD_CmdKind_OpenUser:
|
||||||
|
|||||||
Reference in New Issue
Block a user