mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
impr: Don't insert a new line at the end of settings pages
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user