1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:37:35 +00:00

LibGUI: Make GUI::FileIconProvider::icon_for_executable() a public API

This way we can use it instead of icon_for_path() in a bunch of places
and avoid loading the full FileIconProvider configuration.
This commit is contained in:
Andreas Kling 2020-12-28 10:04:18 +01:00
parent a49fd0ff5e
commit ffa241250b
6 changed files with 20 additions and 6 deletions

View file

@ -141,7 +141,7 @@ 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) {
auto icon = GUI::FileIconProvider::icon_for_path(app.executable).bitmap_for_size(16);
auto icon = GUI::FileIconProvider::icon_for_executable(app.executable).bitmap_for_size(16);
#ifdef SYSTEM_MENU_DEBUG
if (icon)