Browse Source

- Hide piece availability and pieces downloaded bars when the shown torrent gets complete

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
925597c43a
  1. 3
      src/propertieswidget.cpp

3
src/propertieswidget.cpp

@ -327,6 +327,7 @@ void PropertiesWidget::loadDynamicData() { @@ -327,6 +327,7 @@ void PropertiesWidget::loadDynamicData() {
else
shareRatio->setText(QString(QByteArray::number(ratio, 'f', 1)));
if(!h.is_seed()) {
showPieceBars(true);
// Downloaded pieces
downloaded_pieces->setProgress(h.pieces());
// Pieces availability
@ -336,6 +337,8 @@ void PropertiesWidget::loadDynamicData() { @@ -336,6 +337,8 @@ void PropertiesWidget::loadDynamicData() {
avail_average_lbl->setText(QString::number(avail_average, 'f', 1));
// Progress
progress_lbl->setText(QString::number(h.progress()*100., 'f', 1)+"%");
} else {
showPieceBars(false);
}
return;
}

Loading…
Cancel
Save