diff options
author | Andreas Kling <kling@serenityos.org> | 2020-12-28 10:04:18 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-12-28 11:41:09 +0100 |
commit | ffa241250b4880d71a04baae016baf3c569487fb (patch) | |
tree | 32072bff560cf551b6a8970798eedbcf72598c0b /Services | |
parent | a49fd0ff5e0d8204c39535beee36ca4e9884f4b3 (diff) | |
download | serenity-ffa241250b4880d71a04baae016baf3c569487fb.zip |
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.
Diffstat (limited to 'Services')
-rw-r--r-- | Services/SystemMenu/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Services/SystemMenu/main.cpp b/Services/SystemMenu/main.cpp index fc63bf3d24..59d0c29bb6 100644 --- a/Services/SystemMenu/main.cpp +++ b/Services/SystemMenu/main.cpp @@ -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) |