mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-02 09:55:55 +00:00
- Hide piece availability and pieces downloaded bars when the shown torrent gets complete
This commit is contained in:
parent
ba8fd62900
commit
925597c43a
@ -327,6 +327,7 @@ void PropertiesWidget::loadDynamicData() {
|
|||||||
else
|
else
|
||||||
shareRatio->setText(QString(QByteArray::number(ratio, 'f', 1)));
|
shareRatio->setText(QString(QByteArray::number(ratio, 'f', 1)));
|
||||||
if(!h.is_seed()) {
|
if(!h.is_seed()) {
|
||||||
|
showPieceBars(true);
|
||||||
// Downloaded pieces
|
// Downloaded pieces
|
||||||
downloaded_pieces->setProgress(h.pieces());
|
downloaded_pieces->setProgress(h.pieces());
|
||||||
// Pieces availability
|
// Pieces availability
|
||||||
@ -336,6 +337,8 @@ void PropertiesWidget::loadDynamicData() {
|
|||||||
avail_average_lbl->setText(QString::number(avail_average, 'f', 1));
|
avail_average_lbl->setText(QString::number(avail_average, 'f', 1));
|
||||||
// Progress
|
// Progress
|
||||||
progress_lbl->setText(QString::number(h.progress()*100., 'f', 1)+"%");
|
progress_lbl->setText(QString::number(h.progress()*100., 'f', 1)+"%");
|
||||||
|
} else {
|
||||||
|
showPieceBars(false);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user