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
commit 7d4e3f01dd
Notes: sideshowbarker 2024-07-18 08:20:00 +09:00

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);