mirror of
https://github.com/RGBCube/serenity
synced 2025-07-29 12:27:35 +00:00
LibFSAC+Userland: Pass options for FSAC::open_file() using a struct
It was rather inconvenient having to specify all arguments if you wanted to modify only the last one.
This commit is contained in:
parent
5c07aeb78e
commit
27011cf55d
10 changed files with 34 additions and 16 deletions
|
@ -92,7 +92,7 @@ ErrorOr<size_t> CertificateStoreModel::add(Vector<Certificate> const& certificat
|
|||
|
||||
ErrorOr<void> CertificateStoreWidget::import_pem()
|
||||
{
|
||||
auto fsac_result = FileSystemAccessClient::Client::the().open_file(window(), "Import");
|
||||
auto fsac_result = FileSystemAccessClient::Client::the().open_file(window(), { .window_title = "Import"sv });
|
||||
if (fsac_result.is_error())
|
||||
return {};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue