From ffa241250b4880d71a04baae016baf3c569487fb Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 28 Dec 2020 10:04:18 +0100 Subject: 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. --- Services/SystemMenu/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Services') 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 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) -- cgit v1.2.3