mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:24:57 +00:00
LibGUI+Browser: Set menu names using the new String class
This commit is contained in:
parent
956f4d9205
commit
dccd70385d
3 changed files with 1 additions and 7 deletions
|
@ -810,7 +810,7 @@ ErrorOr<void> BrowserWindow::take_screenshot(ScreenshotType type)
|
|||
void BrowserWindow::update_displayed_zoom_level()
|
||||
{
|
||||
VERIFY(m_zoom_menu);
|
||||
auto zoom_level_text = DeprecatedString::formatted("&Zoom ({}%)", round_to<int>(active_tab().view().zoom_level() * 100));
|
||||
auto zoom_level_text = String::formatted("&Zoom ({}%)", round_to<int>(active_tab().view().zoom_level() * 100)).release_value_but_fixme_should_propagate_errors();
|
||||
m_zoom_menu->set_name(zoom_level_text);
|
||||
active_tab().update_reset_zoom_button();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue