summaryrefslogtreecommitdiff
path: root/Userland/Demos
diff options
context:
space:
mode:
authorKarol Kosek <krkk@serenityos.org>2022-12-17 00:58:13 +0100
committerSam Atkins <atkinssj@gmail.com>2023-01-07 10:53:43 +0000
commit247db3fdd0e96b282f5ecb1c64da7bd533245611 (patch)
tree004ccd2ac253e0a56b5bb1fecbe57767aee3db59 /Userland/Demos
parente361025cfb4857c13fc4082f349ad169ba4a9231 (diff)
downloadserenity-247db3fdd0e96b282f5ecb1c64da7bd533245611.zip
LibFileSystemAccessClient: Rename try_* functions to try_*_deprecated
These functions return the deprecated `Core::File` class, so let's mark it as such to avoid possible confusion between future non try_* functions which will use Core::Stream family classes and to possibly grab someone's attention. :^)
Diffstat (limited to 'Userland/Demos')
-rw-r--r--Userland/Demos/WidgetGallery/GalleryWidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Demos/WidgetGallery/GalleryWidget.cpp b/Userland/Demos/WidgetGallery/GalleryWidget.cpp
index d8973608ae..45041e9340 100644
--- a/Userland/Demos/WidgetGallery/GalleryWidget.cpp
+++ b/Userland/Demos/WidgetGallery/GalleryWidget.cpp
@@ -108,7 +108,7 @@ 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(window());
+ auto response = FileSystemAccessClient::Client::the().try_open_file_deprecated(window());
if (response.is_error())
return;
m_text_editor->set_text(response.release_value()->filename());