mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-23 04:55:15 +00:00
SystemMenu: Sort applications alphabetically
This commit is contained in:
parent
f95a119627
commit
70dc80fa47
Notes:
sideshowbarker
2024-07-19 08:05:03 +09:00
Author: https://github.com/xTibor Commit: https://github.com/SerenityOS/serenity/commit/70dc80fa471 Pull-request: https://github.com/SerenityOS/serenity/pull/1525
1 changed files with 1 additions and 0 deletions
|
@ -119,6 +119,7 @@ NonnullRefPtr<GUI::Menu> build_system_menu()
|
|||
g_apps.append({ app_executable, app_name, app_icon_path, app_category });
|
||||
seen_app_categories.set(app_category);
|
||||
}
|
||||
quick_sort(g_apps, [](auto& a, auto& b) { return a.name < b.name; });
|
||||
}
|
||||
|
||||
Vector<String> sorted_app_categories;
|
||||
|
|
Loading…
Add table
Reference in a new issue