WidgetGallery: Use the non-deprecated API of LibFileSystemAccessClient

The patch is tiny as WidgetGallery is only using `LibFSAC` for its file
picker.
This commit is contained in:
Lucas CHOLLET 2023-01-14 23:46:13 -05:00 committed by Sam Atkins
parent 01db302a33
commit c0ada49a24
Notes: sideshowbarker 2024-07-17 01:39:32 +09:00

View File

@ -108,10 +108,10 @@ GalleryWidget::GalleryWidget()
m_file_button->set_icon(Gfx::Bitmap::try_load_from_file("/res/icons/16x16/open.png"sv).release_value_but_fixme_should_propagate_errors());
m_file_button->on_click = [&](auto) {
auto response = FileSystemAccessClient::Client::the().try_open_file_deprecated(window());
auto response = FileSystemAccessClient::Client::the().open_file(window());
if (response.is_error())
return;
m_text_editor->set_text(response.release_value()->filename());
m_text_editor->set_text(response.release_value().filename());
};
m_input_button = basics_tab->find_descendant_of_type_named<GUI::Button>("input_button");