From 4f5824cbd09726cbdc1b06093a55c3c28b881d95 Mon Sep 17 00:00:00 2001 From: Lachlan Jowett Date: Sun, 5 Nov 2023 17:00:22 +1100 Subject: [PATCH] DisplaySettings: Desktop crash when non-image file type is used If the user selects an non-image file as their background, then at next startup the desktop crashes. --- .../Applications/DisplaySettings/BackgroundSettingsWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Applications/DisplaySettings/BackgroundSettingsWidget.cpp b/Userland/Applications/DisplaySettings/BackgroundSettingsWidget.cpp index 927fb3a9a2..115e28e945 100644 --- a/Userland/Applications/DisplaySettings/BackgroundSettingsWidget.cpp +++ b/Userland/Applications/DisplaySettings/BackgroundSettingsWidget.cpp @@ -104,7 +104,7 @@ ErrorOr BackgroundSettingsWidget::create_frame() FileSystemAccessClient::OpenFileOptions options { .window_title = "Select Wallpaper"sv, .path = "/res/wallpapers"sv, - .allowed_file_types = { { GUI::FileTypeFilter::image_files(), GUI::FileTypeFilter::all_files() } } + .allowed_file_types = { { GUI::FileTypeFilter::image_files() } } }; auto response = FileSystemAccessClient::Client::the().open_file(window(), options); if (response.is_error())