fix: cell-renderer up/down ui layout order (#2970)

This commit is contained in:
Charles Kerr 2022-04-22 22:41:30 -05:00 committed by GitHub
parent 0a3018d706
commit 4f70baa27e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -588,7 +588,7 @@ void MainWindow::Impl::updateStats()
if (auto const pch = gtr_pref_string_get(TR_KEY_statusbar_stats); pch == "session-ratio")
{
tr_sessionGetStats(session, &stats);
buf = fmt::format(_("Ratio: {ratio}"), tr_strlratio(stats.ratio));
buf = fmt::format(_("Ratio: {ratio}"), fmt::arg("ratio", tr_strlratio(stats.ratio)));
}
else if (pch == "session-transfer")
{

View File

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