mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 18:20:43 +09:00
LibGUI+Userland: Make Window::*add_menu take name using new string
This commit is contained in:
parent
60a338758c
commit
969543a847
Notes:
sideshowbarker
2024-07-16 23:44:30 +09:00
Author: https://github.com/krkk
Commit: 969543a847
Pull-request: https://github.com/SerenityOS/serenity/pull/18397
52 changed files with 162 additions and 162 deletions
|
@ -116,7 +116,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
window->set_resizable(false);
|
||||
window->resize(WIDTH * 2, HEIGHT * 3);
|
||||
|
||||
auto file_menu = TRY(window->try_add_menu("&File"));
|
||||
auto file_menu = TRY(window->try_add_menu("&File"_short_string));
|
||||
TRY(file_menu->try_add_action(GUI::CommonActions::make_quit_action([&](auto&) { app->quit(); })));
|
||||
|
||||
auto app_icon = TRY(GUI::Icon::try_create_default_icon("app-libgfx-demo"sv));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue