mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-15 12:23:15 +00:00
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:
parent
01db302a33
commit
c0ada49a24
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue