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
Notes: sideshowbarker 2024-07-19 07:16:48 +09:00

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);
}