1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:38:12 +00:00

FileSystemAccessServer: Use ECANCELED instead of -1

-1 was used when the user cancel the dialog, `ECANCELED` is a bit more
explicit about what it is.
This commit is contained in:
Lucas CHOLLET 2023-05-04 21:45:24 -04:00 committed by Sam Atkins
parent 8bb2663a22
commit 5a4c61838f
2 changed files with 2 additions and 2 deletions

View file

@ -156,7 +156,7 @@ void ConnectionFromClient::prompt_helper(i32 request_id, Optional<DeprecatedStri
async_handle_prompt_end(request_id, 0, IPC::File(*file.release_value(), IPC::File::CloseAfterSending), user_picked_file);
}
} else {
async_handle_prompt_end(request_id, -1, Optional<IPC::File> {}, Optional<DeprecatedString> {});
async_handle_prompt_end(request_id, ECANCELED, Optional<IPC::File> {}, Optional<DeprecatedString> {});
}
}