From 0ec42cd4b6b2cd6dba66b9064a6a78c4b3eb0c84 Mon Sep 17 00:00:00 2001 From: FlayaN Date: Sat, 7 Dec 2024 00:50:14 +0100 Subject: [PATCH] feat: group not loaded features in UI --- src/Menu.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Menu.cpp b/src/Menu.cpp index 6d2ffafdb..8332c3dee 100644 --- a/src/Menu.cpp +++ b/src/Menu.cpp @@ -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));