1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 18:57:34 +00:00

Browser: Rename "take screenshot" action to "take visible screenshot"

This is to differentiate between this and an upcoming action to take a
screenshot of the entire document.
This commit is contained in:
Timothy Flynn 2022-11-04 23:58:11 -04:00 committed by Andreas Kling
parent f652c75f34
commit 59b1dfa4e5
3 changed files with 6 additions and 6 deletions

View file

@ -244,13 +244,13 @@ void BrowserWindow::build_menus()
this);
m_inspect_dom_node_action->set_status_tip("Open inspector for this element");
m_take_screenshot_action = GUI::Action::create(
"&Take Screenshot"sv, g_icon_bag.filetype_image, [this](auto&) {
m_take_visible_screenshot_action = GUI::Action::create(
"Take &Visible Screenshot"sv, g_icon_bag.filetype_image, [this](auto&) {
if (auto result = take_screenshot(); result.is_error())
GUI::MessageBox::show_error(this, String::formatted("{}", result.error()));
},
this);
m_take_screenshot_action->set_status_tip("Save a screenshot of the current tab to the Downloads directory"sv);
m_take_visible_screenshot_action->set_status_tip("Save a screenshot of the visible portion of the current tab to the Downloads directory"sv);
auto& inspect_menu = add_menu("&Inspect");
inspect_menu.add_action(*m_view_source_action);