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:
parent
689e7c28b7
commit
7d4e3f01dd
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue