diff options
author | Karol Kosek <krkk@serenityos.org> | 2022-12-17 17:51:26 +0100 |
---|---|---|
committer | Sam Atkins <atkinssj@gmail.com> | 2023-01-07 10:53:43 +0000 |
commit | 301f9de915b9991b88d59be5a1f703af1db67e44 (patch) | |
tree | f9b3ad2b5dd8d9b0ef722f27e479a1dfcb5f8810 /Userland/Applications/PixelPaint/main.cpp | |
parent | 4f699d0f58b84bcee0feb1d13bc2f4b308cc4519 (diff) | |
download | serenity-301f9de915b9991b88d59be5a1f703af1db67e44.zip |
PixelPaint: Port to `Core::Stream` :^)
Diffstat (limited to 'Userland/Applications/PixelPaint/main.cpp')
-rw-r--r-- | Userland/Applications/PixelPaint/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Applications/PixelPaint/main.cpp b/Userland/Applications/PixelPaint/main.cpp index 05aa370b24..7f3cf01acf 100644 --- a/Userland/Applications/PixelPaint/main.cpp +++ b/Userland/Applications/PixelPaint/main.cpp @@ -74,10 +74,10 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) window->show(); if (image_file) { - auto response = FileSystemAccessClient::Client::the().try_request_file_read_only_approved_deprecated(window, image_file); + auto response = FileSystemAccessClient::Client::the().request_file_read_only_approved(window, image_file); if (response.is_error()) return 1; - main_widget->open_image(response.value()); + main_widget->open_image(response.release_value()); } else { TRY(main_widget->create_default_image()); } |