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