summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorLucas CHOLLET <lucas.chollet@free.fr>2023-01-14 23:46:13 -0500
committerSam Atkins <atkinssj@gmail.com>2023-01-15 16:39:12 +0000
commitc0ada49a24531ca8a165284ffaae05f49ad62c19 (patch)
tree9cc8e0cd585c2d8db2cd302922a6f41f9af40d22 /Userland
parent01db302a33d6441e4351089aae7128423a27751d (diff)
downloadserenity-c0ada49a24531ca8a165284ffaae05f49ad62c19.zip
WidgetGallery: Use the non-deprecated API of `LibFileSystemAccessClient`
The patch is tiny as WidgetGallery is only using `LibFSAC` for its file picker.
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Demos/WidgetGallery/GalleryWidget.cpp4
1 files 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<GUI::Button>("input_button");