mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:17:35 +00:00
IRCClient: Use new format functions.
This commit is contained in:
parent
d2ca7ca017
commit
da9c995a8c
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