mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-19 08:51:57 +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
Notes:
sideshowbarker
2024-07-17 04:01:41 +09:00
Author: https://github.com/krkk
Commit: 27011cf55d
Pull-request: https://github.com/SerenityOS/serenity/pull/19262
Reviewed-by: https://github.com/AtkinsSJ ✅
Reviewed-by: https://github.com/LucasChollet
10 changed files with 34 additions and 16 deletions
|
@ -455,7 +455,7 @@ ErrorOr<void> MainWidget::initialize_menubar(GUI::Window& window)
|
|||
})));
|
||||
TRY(m_edit_menu->try_add_action(GUI::Action::create(
|
||||
"&Load Color Palette...", g_icon_bag.load_color_palette, [&](auto&) {
|
||||
auto response = FileSystemAccessClient::Client::the().open_file(&window, "Load Color Palette");
|
||||
auto response = FileSystemAccessClient::Client::the().open_file(&window, { .window_title = "Load Color Palette"sv });
|
||||
if (response.is_error())
|
||||
return;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue