mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +00:00
IRCClient: Use new format functions.
This commit is contained in:
parent
d2ca7ca017
commit
da9c995a8c
Notes:
sideshowbarker
2024-07-19 02:01:06 +09:00
Author: https://github.com/asynts
Commit: da9c995a8c
Pull-request: https://github.com/SerenityOS/serenity/pull/3699
7 changed files with 35 additions and 29 deletions
|
@ -65,7 +65,7 @@ GUI::Variant IRCWindowListModel::data(const GUI::ModelIndex& index, GUI::ModelRo
|
|||
case Column::Name: {
|
||||
auto& window = m_client->window_at(index.row());
|
||||
if (window.unread_count())
|
||||
return String::format("%s (%d)", window.name().characters(), window.unread_count());
|
||||
return String::formatted("{} ({})", window.name(), window.unread_count());
|
||||
return window.name();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue