fix: Sub windows being used incorrectly

This commit is contained in:
WerWolv
2024-06-26 19:11:31 +02:00
parent e1a4707569
commit 95f71bcb10
11 changed files with 27 additions and 35 deletions

View File

@@ -130,9 +130,8 @@ namespace hex::plugin::builtin {
if (ImGuiExt::BeginSubWindow("Build Information", nullptr, ImVec2(450_scaled, 0), ImGuiChildFlags_AutoResizeX | ImGuiChildFlags_AutoResizeY)) {
this->drawBuildInformation();
ImGuiExt::EndSubWindow();
}
ImGuiExt::EndSubWindow();
ImGui::EndTable();
}
@@ -266,9 +265,8 @@ namespace hex::plugin::builtin {
ImGui::EndTable();
}
ImGuiExt::EndSubWindow();
}
ImGuiExt::EndSubWindow();
}
void ViewAbout::drawContributorPage() {
@@ -371,8 +369,8 @@ namespace hex::plugin::builtin {
ImGui::PopStyleVar(2);
}
ImGuiExt::EndSubWindow();
}
ImGuiExt::EndSubWindow();
ImGui::NewLine();
};
@@ -409,8 +407,8 @@ namespace hex::plugin::builtin {
ImGui::EndTable();
}
ImGuiExt::EndSubWindow();
}
ImGuiExt::EndSubWindow();
}
void ViewAbout::drawPluginRow(const hex::Plugin& plugin) {
@@ -511,8 +509,8 @@ namespace hex::plugin::builtin {
ImGui::EndTable();
}
ImGuiExt::EndSubWindow();
}
ImGuiExt::EndSubWindow();
ImGui::PopStyleVar();
}
@@ -730,9 +728,8 @@ namespace hex::plugin::builtin {
if (result) {
this->drawCommitsTable(commits);
ImGuiExt::EndSubWindow();
}
ImGuiExt::EndSubWindow();
}
void ViewAbout::drawCommitsTable(const auto& commits) {