1
0
mirror of synced 2025-02-02 04:17:56 +01:00

fix: I guess we can still not use std::views::enumerate

This commit is contained in:
WerWolv 2025-01-19 17:54:18 +01:00
parent 5e3532267c
commit af27c09204

View File

@ -90,7 +90,9 @@ namespace hex::plugin::builtin {
}
// Draw all settings of that category
for (auto [index, subCategory] : category.subCategories | std::views::enumerate) {
u32 index = 0;
for (auto &subCategory : category.subCategories) {
ON_SCOPE_EXIT { index += 1; };
// Skip empty subcategories
if (subCategory.entries.empty())