QuickShow: Use new Bitmap::is_path_a_supported_image_format method

This commit is contained in:
Hüseyin ASLITÜRK 2020-06-15 15:03:59 +03:00 committed by Andreas Kling
commit 3a903babee
Notes: sideshowbarker 2024-07-19 05:38:00 +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") && !file.ends_with(".gif")) // TODO: Find a batter way to filter supported images.
if (!Gfx::Bitmap::is_path_a_supported_image_format(file))
continue;
m_files_in_same_dir.append(file);
}