From 21c78e2fc3874b9f2b3242f9ff7d622a213153ab Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 22 Feb 2020 17:01:06 +0100 Subject: [PATCH] SystemMenu: Silence debug spam on startup --- Applications/SystemMenu/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Applications/SystemMenu/main.cpp b/Applications/SystemMenu/main.cpp index d2d4ab66ec..3197884984 100644 --- a/Applications/SystemMenu/main.cpp +++ b/Applications/SystemMenu/main.cpp @@ -40,6 +40,8 @@ #include #include +//#define SYSTEM_MENU_DEBUG + struct AppMetadata { String executable; String name; @@ -136,8 +138,10 @@ NonnullRefPtr build_system_menu() if (!app.icon_path.is_empty()) icon = Gfx::Bitmap::load_from_file(app.icon_path); +#ifdef SYSTEM_MENU_DEBUG if (icon) dbg() << "App " << app.name << " has icon with size " << icon->size(); +#endif auto parent_menu = g_app_category_menus.get(app.category).value_or(*system_menu); parent_menu->add_action(GUI::Action::create(app.name, icon.ptr(), [app_identifier](auto&) {