refactor: reduce nesting
This commit is contained in:
parent
cf4dd19be1
commit
f5ac3c419f
|
@ -86,16 +86,20 @@ namespace NominaOcculta {
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (var (info, queue) in this.Plugin.NameRepository.ReadOnlyNames) {
|
foreach (var (info, queue) in this.Plugin.NameRepository.ReadOnlyNames) {
|
||||||
if (ImGui.CollapsingHeader($"{info}")) {
|
if (!ImGui.CollapsingHeader($"{info}")) {
|
||||||
if (ImGui.BeginTable($"{info} table", this._queueColumns)) {
|
continue;
|
||||||
foreach (var name in queue) {
|
|
||||||
ImGui.TableNextColumn();
|
|
||||||
ImGui.TextUnformatted(name);
|
|
||||||
}
|
|
||||||
|
|
||||||
ImGui.EndTable();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!ImGui.BeginTable($"{info} table", this._queueColumns)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach (var name in queue) {
|
||||||
|
ImGui.TableNextColumn();
|
||||||
|
ImGui.TextUnformatted(name);
|
||||||
|
}
|
||||||
|
|
||||||
|
ImGui.EndTable();
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui.TreePop();
|
ImGui.TreePop();
|
||||||
|
|
Loading…
Reference in New Issue