mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-23 08:00:20 +00:00
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:
parent
444b6c8407
commit
85b69e54e4
Notes:
sideshowbarker
2024-07-19 06:54:45 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/85b69e54e4c Pull-request: https://github.com/SerenityOS/serenity/pull/2144
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue