Browser: Escape percent sign in download progress format string

Otherwise the following is printed:

printf_internal: Unimplemented format specifier   (fmt: 0% of %s)
This commit is contained in:
Linus Groh 2020-05-07 14:56:31 +01:00 committed by Andreas Kling
parent 444b6c8407
commit 85b69e54e4
Notes: sideshowbarker 2024-07-19 06:54:45 +09:00

View file

@ -162,7 +162,7 @@ Tab::Tab()
auto window = GUI::Window::construct();
window->set_rect(300, 300, 300, 150);
auto url = m_html_widget->document()->complete_url(m_link_context_menu_href);
window->set_title(String::format("0% of %s", url.basename().characters()));
window->set_title(String::format("0%% of %s", url.basename().characters()));
window->set_resizable(false);
window->set_main_widget<DownloadWidget>(url);
window->show();