From c0ada49a24531ca8a165284ffaae05f49ad62c19 Mon Sep 17 00:00:00 2001 From: Lucas CHOLLET Date: Sat, 14 Jan 2023 23:46:13 -0500 Subject: [PATCH] WidgetGallery: Use the non-deprecated API of `LibFileSystemAccessClient` The patch is tiny as WidgetGallery is only using `LibFSAC` for its file picker. --- Userland/Demos/WidgetGallery/GalleryWidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Demos/WidgetGallery/GalleryWidget.cpp b/Userland/Demos/WidgetGallery/GalleryWidget.cpp index fe2abe2e66..97a7131975 100644 --- a/Userland/Demos/WidgetGallery/GalleryWidget.cpp +++ b/Userland/Demos/WidgetGallery/GalleryWidget.cpp @@ -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("input_button");