1
0
mirror of synced 2025-02-23 05:09:42 +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 // Draw all settings of that category
for (auto &subCategory : category.subCategories) { for (auto [index, subCategory] : category.subCategories | std::views::enumerate) {
// Skip empty subcategories // Skip empty subcategories
if (subCategory.entries.empty()) if (subCategory.entries.empty())
@ -132,6 +132,8 @@ namespace hex::plugin::builtin {
} }
ImGuiExt::EndSubWindow(); ImGuiExt::EndSubWindow();
if (index != i64(category.subCategories.size()) - 1)
ImGui::NewLine(); ImGui::NewLine();
} }
} }