mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
Use infinity symbol rather than -1 for nb_connections
This commit is contained in:
@@ -379,7 +379,7 @@ void PropertiesWidget::loadDynamicData() {
|
|||||||
lbl_elapsed->setText(elapsed_txt);
|
lbl_elapsed->setText(elapsed_txt);
|
||||||
|
|
||||||
lbl_connections->setText(tr("%1 (%2 max)", "%1 and %2 are numbers, e.g. 3 (10 max)")
|
lbl_connections->setText(tr("%1 (%2 max)", "%1 and %2 are numbers, e.g. 3 (10 max)")
|
||||||
.arg(QString::number(m_torrent->connectionsCount()))
|
.arg(m_torrent->connectionsCount() < 0 ? QString::fromUtf8(C_INFINITY) : QString::number(m_torrent->connectionsCount()))
|
||||||
.arg(QString::number(m_torrent->connectionsLimit())));
|
.arg(QString::number(m_torrent->connectionsLimit())));
|
||||||
|
|
||||||
label_eta_val->setText(Utils::Misc::userFriendlyDuration(m_torrent->eta()));
|
label_eta_val->setText(Utils::Misc::userFriendlyDuration(m_torrent->eta()));
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ var loadTorrentData = function() {
|
|||||||
|
|
||||||
temp = "QBT_TR(%1 (%2 max))QBT_TR"
|
temp = "QBT_TR(%1 (%2 max))QBT_TR"
|
||||||
.replace("%1", data.nb_connections)
|
.replace("%1", data.nb_connections)
|
||||||
.replace("%2", data.nb_connections_limit)
|
.replace("%2", data.nb_connections_limit < 0 ? "∞" : data.nb_connections_limit)
|
||||||
$('nb_connections').set('html', temp);
|
$('nb_connections').set('html', temp);
|
||||||
|
|
||||||
temp = "QBT_TR(%1 (%2 this session))QBT_TR"
|
temp = "QBT_TR(%1 (%2 this session))QBT_TR"
|
||||||
|
|||||||
Reference in New Issue
Block a user