Skip to content

Commit

Permalink
We are only interested in images
Browse files Browse the repository at this point in the history
  • Loading branch information
lainsce committed Aug 16, 2024
1 parent 7d3a96d commit 7296758
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion fuses/appearance/WallpaperGrid.vala
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,13 @@ public class Appearance.WallpaperGrid : Gtk.Grid {
}

var file = directory.resolve_relative_path (file_info.get_name ());
add_wallpaper_from_file.begin (file);
if (file.get_path ().contains (".png") ||
file.get_path ().contains (".jpg") ||
file.get_path ().contains (".jpeg") ||
file.get_path ().contains (".gif") ||
file.get_path ().contains (".webp")) {
add_wallpaper_from_file.begin (file);
}
}

if (toplevel_folder) {
Expand Down

0 comments on commit 7296758

Please sign in to comment.