mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-29 19:18:42 -07:00
Do not display 100% unless the torrent is complete
This commit is contained in:
parent
e402674092
commit
dfcdb18b41
1 changed files with 4 additions and 1 deletions
|
@ -370,7 +370,10 @@ void PropertiesWidget::loadDynamicData() {
|
|||
showPiecesAvailability(false);
|
||||
}
|
||||
// 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 {
|
||||
showPiecesAvailability(false);
|
||||
showPiecesDownloaded(false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue