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:
parent
1afdf7f3c7
commit
4f5824cbd0
Notes:
sideshowbarker
2024-07-17 18:06:52 +09:00
Author: https://github.com/lochyj 🔰
Commit: 4f5824cbd0
Pull-request: https://github.com/SerenityOS/serenity/pull/21790
Reviewed-by: https://github.com/AtkinsSJ ✅
1 changed files with 1 additions and 1 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue