Browse Source

Browser: Escape percent sign in download progress format string

Otherwise the following is printed:

printf_internal: Unimplemented format specifier   (fmt: 0% of %s)
Linus Groh 5 years ago
parent
commit
85b69e54e4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Applications/Browser/Tab.cpp

+ 1 - 1
Applications/Browser/Tab.cpp

@@ -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();