mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:07:45 +00:00
QuickShow: Use new Bitmap::is_path_a_supported_image_format method
This commit is contained in:
parent
56158a4281
commit
3a903babee
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ void QSWidget::navigate(Directions direction)
|
||||||
Core::DirIterator iterator(current_dir, Core::DirIterator::Flags::SkipDots);
|
Core::DirIterator iterator(current_dir, Core::DirIterator::Flags::SkipDots);
|
||||||
while (iterator.has_next()) {
|
while (iterator.has_next()) {
|
||||||
String file = iterator.next_full_path();
|
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;
|
continue;
|
||||||
m_files_in_same_dir.append(file);
|
m_files_in_same_dir.append(file);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue