[IconFetcher] If last step fails to load icon, don't error out make warning

This commit is contained in:
Dave Davenport 2023-11-16 15:25:40 +01:00
parent 272c1ab231
commit 24c3258379

View file

@ -360,8 +360,8 @@ static void rofi_icon_fetcher_worker(thread_state *sdata,
GdkPixbuf *pb = gdk_pixbuf_new_from_file_at_scale(
icon_path, sentry->wsize, sentry->hsize, TRUE, &error);
if (error != NULL) {
g_error("Failed to load image: |%s| %d %d %s (%p)", icon_path,
sentry->wsize, sentry->hsize, error->message, pb);
g_warning("Failed to load image: |%s| %d %d %s (%p)", icon_path,
sentry->wsize, sentry->hsize, error->message, pb);
g_error_free(error);
if (pb) {
g_object_unref(pb);