mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 05:47:34 +00:00
Userland: Construct Menus with name using the non-deprecated String
This commit is contained in:
parent
c4c1df7621
commit
956f4d9205
9 changed files with 15 additions and 21 deletions
|
@ -495,7 +495,7 @@ ErrorOr<NonnullRefPtr<GUI::Menu>> HackStudioWidget::create_project_tree_view_con
|
|||
m_tree_view_rename_action = GUI::CommonActions::make_rename_action([this](GUI::Action const&) {
|
||||
m_project_tree_view->begin_editing(m_project_tree_view->cursor_index());
|
||||
});
|
||||
auto project_tree_view_context_menu = GUI::Menu::construct("Project Files");
|
||||
auto project_tree_view_context_menu = GUI::Menu::construct(TRY("Project Files"_string));
|
||||
|
||||
auto& new_file_submenu = project_tree_view_context_menu->add_submenu("N&ew...");
|
||||
for (auto& new_file_action : m_new_file_actions) {
|
||||
|
|
|
@ -128,7 +128,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
remote_process.set_inspected_object(remote_object->address);
|
||||
};
|
||||
|
||||
auto properties_tree_view_context_menu = TRY(GUI::Menu::try_create("Properties Tree View"));
|
||||
auto properties_tree_view_context_menu = TRY(GUI::Menu::try_create(TRY("Properties Tree View"_string)));
|
||||
|
||||
auto copy_bitmap = Gfx::Bitmap::load_from_file("/res/icons/16x16/edit-copy.png"sv).release_value_but_fixme_should_propagate_errors();
|
||||
auto copy_property_name_action = GUI::Action::create("Copy Property Name", copy_bitmap, [&](auto&) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue