Skip to content

Commit

Permalink
feat: group not loaded features in UI
Browse files Browse the repository at this point in the history
  • Loading branch information
FlayaN committed Dec 6, 2024
1 parent 8c7a40c commit 0ec42cd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,14 @@ void Menu::DrawSettings()
menuList.push_back("Features"s);
std::ranges::copy(
sortedFeatureList | std::ranges::views::filter([](Feature* feat) {
return !feat->IsCore();
return !feat->IsCore() && feat->loaded;
}),
std::back_inserter(menuList));

menuList.push_back("Unloaded Features"s);
std::ranges::copy(
sortedFeatureList | std::ranges::views::filter([](Feature* feat) {
return !feat->IsCore() && !feat->loaded;
}),
std::back_inserter(menuList));

Expand Down

0 comments on commit 0ec42cd

Please sign in to comment.