@@ -174,13 +174,13 @@ std::tuple<std::size_t, int, int, std::string, std::string, std::string> gfnWith
174
174
175
175
// iterate
176
176
auto [nb, f, id, name, app_id, workspace_layout] = gfnWithWorkspace (node[" nodes" ], output, config_, bar_, parentWorkspace, filterWorkspace, node[" type" ].asString ());
177
- if (id > -1 && !name.empty ()) {
177
+ auto [nb2, f2, id2, name2, app_id2, workspace_layout2] = gfnWithWorkspace (node[" floating_nodes" ], output, config_, bar_, parentWorkspace, filterWorkspace, node[" type" ].asString ());
178
+
179
+ if ((id > 0 || ((id2 < 0 || name2.empty ()) && id > -1 )) && !name.empty ()) {
178
180
return {nb, f, id, name, app_id, workspace_layout};
179
181
}
180
- // Search for floating node
181
- std::tie (nb, f, id, name, app_id, workspace_layout) = gfnWithWorkspace (node[" floating_nodes" ], output, config_, bar_, parentWorkspace, filterWorkspace, node[" type" ].asString ());
182
- if (id > -1 && !name.empty ()) {
183
- return {nb, f, id, name, app_id,workspace_layout};
182
+ else if (id2 > 0 && !name2.empty ()) {
183
+ return {nb2, f2, id2, name2, app_id2,workspace_layout2};
184
184
}
185
185
}
186
186
/* "parentType" might be a bit misleading, it's the parent of the nodes being iterated in the loop above.
0 commit comments