mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 19:54:57 +00:00
LibGUI: Create thumnail for gif files
This commit is contained in:
parent
e7b9e03285
commit
c9c1d1fae0
2 changed files with 8 additions and 2 deletions
|
@ -440,7 +440,7 @@ Icon FileSystemModel::icon_for_file(const mode_t mode, const String& name) const
|
|||
|
||||
Icon FileSystemModel::icon_for(const Node& node) const
|
||||
{
|
||||
if (node.name.to_lowercase().ends_with(".png")) {
|
||||
if (node.name.to_lowercase().ends_with(".png") || node.name.to_lowercase().ends_with(".gif")) {
|
||||
if (!node.thumbnail) {
|
||||
if (!const_cast<FileSystemModel*>(this)->fetch_thumbnail_for(node))
|
||||
return m_filetype_image_icon;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue