mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:27:45 +00:00
PixelPaint: Port to Core::Stream
:^)
This commit is contained in:
parent
4f699d0f58
commit
301f9de915
11 changed files with 59 additions and 74 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue