fix: missing fmt::arg calls in GTK client (#2819)

This commit is contained in:
Charles Kerr 2022-03-25 12:16:29 -05:00 committed by GitHub
parent b94c6796c8
commit 7905244320
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -126,13 +126,13 @@ std::string getShortTransferString(
{
return fmt::format(
_("{upload_speed} ▲ {download_speed} ▼"),
tr_formatter_speed_KBps(downloadSpeed_KBps),
tr_formatter_speed_KBps(uploadSpeed_KBps));
fmt::arg("upload_speed", tr_formatter_speed_KBps(uploadSpeed_KBps)),
fmt::arg("download_speed", tr_formatter_speed_KBps(downloadSpeed_KBps)));
}
if (bool const have_up = have_meta && st->peersGettingFromUs > 0; have_up)
{
return fmt::format(_("{upload_speed} ▲"), tr_formatter_speed_KBps(downloadSpeed_KBps));
return fmt::format(_("{upload_speed} ▲"), fmt::arg("upload_speed", tr_formatter_speed_KBps(downloadSpeed_KBps)));
}
if (st->isStalled)