mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:34:59 +00:00
Ladybird+Browser: Update zoom text on menu after clicking zoom button
This commit is contained in:
parent
cc9885c0c6
commit
49df2e1e3a
6 changed files with 19 additions and 4 deletions
|
@ -760,12 +760,17 @@ void BrowserWindow::event(Core::Event& event)
|
|||
Window::event(event);
|
||||
}
|
||||
|
||||
void BrowserWindow::update_displayed_zoom_level()
|
||||
void BrowserWindow::update_zoom_menu()
|
||||
{
|
||||
VERIFY(m_zoom_menu);
|
||||
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);
|
||||
}
|
||||
|
||||
void BrowserWindow::update_displayed_zoom_level()
|
||||
{
|
||||
active_tab().update_reset_zoom_button();
|
||||
update_zoom_menu();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue