1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:48:10 +00:00

QuickShow: Add gif files to navigation file list

This commit is contained in:
Hüseyin ASLITÜRK 2020-04-26 00:09:08 +03:00 committed by Andreas Kling
parent 35dda6222e
commit 679702045d

View file

@ -84,7 +84,7 @@ void QSWidget::navigate(Directions direction)
Core::DirIterator iterator(current_dir, Core::DirIterator::Flags::SkipDots);
while (iterator.has_next()) {
String file = iterator.next_full_path();
if (!file.ends_with(".png")) // TODO: Find a batter way to filter supported images.
if (!file.ends_with(".png") && !file.ends_with(".gif")) // TODO: Find a batter way to filter supported images.
continue;
m_files_in_same_dir.append(file);
}