mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-28 05:52:53 +00:00
LibGUI+Userland: Port Labels to String
This commit is contained in:
parent
3d53dc8228
commit
91bafc2653
Notes:
sideshowbarker
2024-07-17 08:42:05 +09:00
Author: https://github.com/thankyouverycool
Commit: 91bafc2653
Pull-request: https://github.com/SerenityOS/serenity/pull/18573
92 changed files with 240 additions and 242 deletions
|
@ -387,7 +387,7 @@ PDF::PDFErrorOr<void> PDFViewerWidget::try_open_file(StringView path, NonnullOwn
|
|||
TRY(document->initialize());
|
||||
TRY(m_viewer->set_document(document));
|
||||
|
||||
m_total_page_label->set_text(DeprecatedString::formatted("of {}", document->get_page_count()));
|
||||
m_total_page_label->set_text(TRY(String::formatted("of {}", document->get_page_count())));
|
||||
|
||||
m_page_text_box->set_enabled(true);
|
||||
m_page_text_box->set_current_number(1, GUI::AllowCallback::No);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue