Support png and jpg in Image Viewer
This commit is contained in:
@@ -115,7 +115,8 @@ UIIcon UITheme::getFileIcon(const std::string& filename) {
|
||||
if (FsHelpers::hasTxtExtension(filename) || FsHelpers::hasMarkdownExtension(filename)) {
|
||||
return Text;
|
||||
}
|
||||
if (FsHelpers::hasBmpExtension(filename)) {
|
||||
if (FsHelpers::hasBmpExtension(filename) || FsHelpers::hasJpgExtension(filename) ||
|
||||
FsHelpers::hasPngExtension(filename)) {
|
||||
return Image;
|
||||
}
|
||||
return File;
|
||||
|
||||
Reference in New Issue
Block a user