1
0
mirror of synced 2025-02-22 12:50:29 +01:00

impr: Don't insert a new line at the end of settings pages

This commit is contained in:
WerWolv 2025-01-19 10:56:00 +01:00
parent b1edd95ebc
commit 91f5e84250

View File

@ -90,7 +90,7 @@ namespace hex::plugin::builtin {
}
// Draw all settings of that category
for (auto &subCategory : category.subCategories) {
for (auto [index, subCategory] : category.subCategories | std::views::enumerate) {
// Skip empty subcategories
if (subCategory.entries.empty())
@ -132,7 +132,9 @@ namespace hex::plugin::builtin {
}
ImGuiExt::EndSubWindow();
ImGui::NewLine();
if (index != i64(category.subCategories.size()) - 1)
ImGui::NewLine();
}
}
ImGui::EndChild();