mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
Do not display 100% unless the torrent is complete
This commit is contained in:
@@ -370,7 +370,10 @@ void PropertiesWidget::loadDynamicData() {
|
|||||||
showPiecesAvailability(false);
|
showPiecesAvailability(false);
|
||||||
}
|
}
|
||||||
// Progress
|
// Progress
|
||||||
progress_lbl->setText(QString::number(h.progress()*100., 'f', 1)+"%");
|
float progress = h.progress()*100.;
|
||||||
|
if(progress > 99.94 && progress < 100.)
|
||||||
|
progress = 99.9;
|
||||||
|
progress_lbl->setText(QString::number(progress, 'f', 1)+"%");
|
||||||
} else {
|
} else {
|
||||||
showPiecesAvailability(false);
|
showPiecesAvailability(false);
|
||||||
showPiecesDownloaded(false);
|
showPiecesDownloaded(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user