1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-09 17:44:56 +09:00

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.
This commit is contained in:
Lachlan Jowett 2023-11-05 17:00:22 +11:00 committed by Sam Atkins
parent 1afdf7f3c7
commit 4f5824cbd0
Notes: sideshowbarker 2024-07-17 18:06:52 +09:00

View file

@ -104,7 +104,7 @@ ErrorOr<void> 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())