From feef83359d4a406194e61f0b2683d308b2871f3a Mon Sep 17 00:00:00 2001 From: Marcus Nilsson Date: Wed, 11 Jan 2023 22:56:29 +0100 Subject: [PATCH] DisplaySettings: Made select wallpaper use allowed file types --- .../Applications/DisplaySettings/BackgroundSettingsWidget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Userland/Applications/DisplaySettings/BackgroundSettingsWidget.cpp b/Userland/Applications/DisplaySettings/BackgroundSettingsWidget.cpp index 03233fbadb..ce37fcbbf2 100644 --- a/Userland/Applications/DisplaySettings/BackgroundSettingsWidget.cpp +++ b/Userland/Applications/DisplaySettings/BackgroundSettingsWidget.cpp @@ -21,6 +21,7 @@ #include #include #include +#include #include #include #include @@ -86,7 +87,7 @@ void BackgroundSettingsWidget::create_frame() auto& button = *find_descendant_of_type_named("wallpaper_open_button"); button.on_click = [this](auto) { - auto path = GUI::FilePicker::get_open_filepath(window(), "Select wallpaper from file system", "/res/wallpapers"sv); + auto path = GUI::FilePicker::get_open_filepath(window(), "Select wallpaper from file system", "/res/wallpapers"sv, false, GUI::Dialog::ScreenPosition::CenterWithinParent, { { GUI::FileTypeFilter::image_files(), GUI::FileTypeFilter::all_files() } }); if (!path.has_value()) return; m_wallpaper_view->selection().clear();