mirror of
https://github.com/transmission/transmission
synced 2024-12-26 09:37:56 +00:00
fix: cell-renderer up/down ui layout order (#2970)
This commit is contained in:
parent
0a3018d706
commit
4f70baa27e
2 changed files with 2 additions and 2 deletions
|
@ -588,7 +588,7 @@ void MainWindow::Impl::updateStats()
|
||||||
if (auto const pch = gtr_pref_string_get(TR_KEY_statusbar_stats); pch == "session-ratio")
|
if (auto const pch = gtr_pref_string_get(TR_KEY_statusbar_stats); pch == "session-ratio")
|
||||||
{
|
{
|
||||||
tr_sessionGetStats(session, &stats);
|
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")
|
else if (pch == "session-transfer")
|
||||||
{
|
{
|
||||||
|
|
|
@ -126,7 +126,7 @@ std::string getShortTransferString(
|
||||||
if (bool const have_down = have_meta && (st->peersSendingToUs > 0 || st->webseedsSendingToUs > 0); have_down)
|
if (bool const have_down = have_meta && (st->peersSendingToUs > 0 || st->webseedsSendingToUs > 0); have_down)
|
||||||
{
|
{
|
||||||
return fmt::format(
|
return fmt::format(
|
||||||
_("{upload_speed} ▲ {download_speed} ▼"),
|
_("{download_speed} ▼ {upload_speed} ▲"),
|
||||||
fmt::arg("upload_speed", 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)));
|
fmt::arg("download_speed", tr_formatter_speed_KBps(downloadSpeed_KBps)));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue