1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:07:45 +00:00

Taskbar: Unbreak application launchers in the start menu

Application launcher actions reference their applications by an index
into the global `g_apps` table. When skipping over settings apps,
we still have to increment the current app identifier.
This commit is contained in:
Andreas Kling 2021-07-26 02:56:02 +02:00
parent 689e7c28b7
commit 7d4e3f01dd

View file

@ -166,8 +166,10 @@ NonnullRefPtr<GUI::Menu> build_system_menu()
// Then we create and insert all the app menu items into the right place.
int app_identifier = 0;
for (const auto& app : g_apps) {
if (app.category == "Settings"sv)
if (app.category == "Settings"sv) {
++app_identifier;
continue;
}
auto icon = GUI::FileIconProvider::icon_for_executable(app.executable).bitmap_for_size(16);