impr: Don't insert a new line at the end of settings pages
This commit is contained in:
parent
b1edd95ebc
commit
91f5e84250
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user