communicate ctrl -> df start/stop events on launch (as well as normal runs) - prohibit demoting high-level step operations into launches if targets are running, but no process creation events have been identified yet

This commit is contained in:
Ryan Fleury
2024-01-23 15:23:51 -08:00
parent bae91cd40c
commit 2c8e17be3b
3 changed files with 64 additions and 5 deletions
+6 -3
View File
@@ -2353,9 +2353,12 @@ DF_VIEW_UI_FUNCTION_DEF(FileSystem)
if(sig.clicked)
{
String8 new_path = str8_chop_last_slash(str8_chop_last_slash(path_query.path));
new_path = path_normalized_from_string(scratch.arena, new_path);
String8 new_cmd = push_str8f(scratch.arena, "%S/", new_path);
df_view_equip_spec(view, view->spec, df_entity_from_handle(view->entity), new_cmd, &df_g_nil_cfg_node);
if(new_path.size != 0)
{
new_path = path_normalized_from_string(scratch.arena, new_path);
String8 new_cmd = push_str8f(scratch.arena, "%S/", new_path);
df_view_equip_spec(view, view->spec, df_entity_from_handle(view->entity), new_cmd, &df_g_nil_cfg_node);
}
}
}