mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-15 07:09:43 +03:00
QuickShow: Add gif files to navigation file list
This commit is contained in:
parent
35dda6222e
commit
679702045d
Notes:
sideshowbarker
2024-07-19 07:16:48 +09:00
Author: https://github.com/asliturk Commit: https://github.com/SerenityOS/serenity/commit/679702045d2 Pull-request: https://github.com/SerenityOS/serenity/pull/1956 Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/linusg
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user