mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
- Found a way not to use FullAllocationMode list in order to save memory in cpu
This commit is contained in:
parent
db6180b737
commit
27e76962d1
5 changed files with 16 additions and 24 deletions
|
@ -589,10 +589,12 @@ void properties::savePiecesPriorities(){
|
|||
pieces_file.write(misc::toQByteArray(priority)+"\n");
|
||||
}
|
||||
pieces_file.close();
|
||||
if(hasFilteredFiles && !BTSession->inFullAllocationMode(hash)){
|
||||
// If h.has_filtered_pieces() s true, then the torrent
|
||||
// is already in full allocation mode, no need to
|
||||
// reload it.
|
||||
if(hasFilteredFiles && !h.has_filtered_pieces()){
|
||||
BTSession->pauseAndReloadTorrent(h);
|
||||
}
|
||||
BTSession->loadFilesPriorities(h);
|
||||
emit filteredFilesChanged(hash);
|
||||
has_filtered_files = hasFilteredFiles;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue