mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
fix: cell-renderer up/down ui layout order (#2970)
This commit is contained in:
@@ -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)));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user