mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
"Downloaded pieces" bar now displays in yellow the pieces being downloaded
This commit is contained in:
parent
419d719ab8
commit
af3755bf91
4 changed files with 45 additions and 12 deletions
|
@ -338,7 +338,9 @@ void PropertiesWidget::loadDynamicData() {
|
|||
if(!h.is_seed()) {
|
||||
showPiecesDownloaded(true);
|
||||
// Downloaded pieces
|
||||
downloaded_pieces->setProgress(h.pieces());
|
||||
bitfield bf(h.get_torrent_info().num_pieces(), 0);
|
||||
h.downloading_pieces(bf);
|
||||
downloaded_pieces->setProgress(h.pieces(), bf);
|
||||
// Pieces availability
|
||||
if(h.has_metadata() && !h.is_paused() && !h.is_queued() && !h.is_checking()) {
|
||||
showPiecesAvailability(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue