Skip to content

Commit

Permalink
restored check rofi_icon_fetcher_file_is_image
Browse files Browse the repository at this point in the history
  • Loading branch information
giomatfois62 committed Feb 13, 2024
1 parent 9d8e0f3 commit b57bc6d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/modes/recursivebrowser.c
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,10 @@ static cairo_surface_t *_get_icon(const Mode *sw, unsigned int selected_line,
FBFile *dr = &(pd->array[selected_line]);
if (dr->icon_fetch_uid > 0 && dr->icon_fetch_size == height) {
return rofi_icon_fetcher_get(dr->icon_fetch_uid);
}else if (dr->type == RFILE) {
}
if (rofi_icon_fetcher_file_is_image(dr->path)) {
dr->icon_fetch_uid = rofi_icon_fetcher_query(dr->path, height);
} else if (dr->type == RFILE) {
gchar* _path = g_strconcat("thumbnail://", dr->path, NULL);
dr->icon_fetch_uid = rofi_icon_fetcher_query(_path, height);
g_free(_path);
Expand Down

0 comments on commit b57bc6d

Please sign in to comment.