mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -07:00
- Do not hide separator in status bar when DHT is disabled. Looks better IMHO
This commit is contained in:
parent
072200c5f9
commit
d25128e0b3
1 changed files with 2 additions and 2 deletions
|
@ -151,11 +151,11 @@ public slots:
|
||||||
// Update Number of DHT nodes
|
// Update Number of DHT nodes
|
||||||
if(BTSession->isDHTEnabled()) {
|
if(BTSession->isDHTEnabled()) {
|
||||||
DHTLbl->setVisible(true);
|
DHTLbl->setVisible(true);
|
||||||
statusSep1->setVisible(true);
|
//statusSep1->setVisible(true);
|
||||||
DHTLbl->setText(tr("DHT: %1 nodes").arg(QString::number(sessionStatus.dht_nodes)));
|
DHTLbl->setText(tr("DHT: %1 nodes").arg(QString::number(sessionStatus.dht_nodes)));
|
||||||
} else {
|
} else {
|
||||||
DHTLbl->setVisible(false);
|
DHTLbl->setVisible(false);
|
||||||
statusSep1->setVisible(false);
|
//statusSep1->setVisible(false);
|
||||||
}
|
}
|
||||||
// Update speed labels
|
// Update speed labels
|
||||||
dlSpeedLbl->setText(tr("D: %1 KiB/s - T: %2", "Download speed: x KiB/s - Transferred: xMiB").arg(QString::number(sessionStatus.payload_download_rate/1024., 'f', 1)).arg(misc::friendlyUnit(sessionStatus.total_payload_download)));
|
dlSpeedLbl->setText(tr("D: %1 KiB/s - T: %2", "Download speed: x KiB/s - Transferred: xMiB").arg(QString::number(sessionStatus.payload_download_rate/1024., 'f', 1)).arg(misc::friendlyUnit(sessionStatus.total_payload_download)));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue