summaryrefslogtreecommitdiffstats
path: root/source/dialogs/filebrowser.c
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2020-10-17 22:05:17 +0200
committerDave Davenport <qball@gmpclient.org>2020-10-17 22:05:17 +0200
commit08a40d13ce2e7b733251bc0f2b09f615ab50f8d8 (patch)
tree1d209d303d8943cdf92a844873ff139ab2f97f34 /source/dialogs/filebrowser.c
parentcc5a1989d867078a384b0904592ce718f90829dd (diff)
[Icons] Check both small and big caps for extention.
Diffstat (limited to 'source/dialogs/filebrowser.c')
-rw-r--r--source/dialogs/filebrowser.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/dialogs/filebrowser.c b/source/dialogs/filebrowser.c
index 37ec7725..22c94cf5 100644
--- a/source/dialogs/filebrowser.c
+++ b/source/dialogs/filebrowser.c
@@ -348,8 +348,9 @@ static cairo_surface_t *_get_icon ( const Mode *sw, unsigned int selected_line,
if ( dr->icon_fetch_uid > 0 ) {
return rofi_icon_fetcher_get ( dr->icon_fetch_uid );
}
- if ( dr->path && (g_str_has_suffix(dr->path, ".png") || g_str_has_suffix(dr->path, "jpeg") || g_str_has_suffix(dr->path, "jpg") || g_str_has_suffix(dr->path, ".svg") )){
- dr->icon_fetch_uid = rofi_icon_fetcher_query ( dr->path, height );
+ if ( dr->path && (g_str_has_suffix(dr->path, ".png") || g_str_has_suffix(dr->path, ".jpeg") || g_str_has_suffix(dr->path, ".jpg") || g_str_has_suffix(dr->path, ".svg") ||
+ g_str_has_suffix(dr->path, ".PNG") || g_str_has_suffix(dr->path, ".JPEG") || g_str_has_suffix(dr->path, ".JPG") || g_str_has_suffix(dr->path, ".SVG") )){
+ dr->icon_fetch_uid = rofi_icon_fetcher_query ( dr->path, height );
} else {
dr->icon_fetch_uid = rofi_icon_fetcher_query ( icon_name[dr->type], height );
}