mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-23 16:58:06 -06:00
Make the active torrents filter reflect actual transfers
PR #23431. Closes #23121.
This commit is contained in:
@@ -1186,25 +1186,7 @@ bool TorrentImpl::isCompleted() const
|
||||
|
||||
bool TorrentImpl::isActive() const
|
||||
{
|
||||
switch (m_state)
|
||||
{
|
||||
case TorrentState::StalledDownloading:
|
||||
return (uploadPayloadRate() > 0);
|
||||
|
||||
case TorrentState::DownloadingMetadata:
|
||||
case TorrentState::ForcedDownloadingMetadata:
|
||||
case TorrentState::Downloading:
|
||||
case TorrentState::ForcedDownloading:
|
||||
case TorrentState::Uploading:
|
||||
case TorrentState::ForcedUploading:
|
||||
case TorrentState::Moving:
|
||||
return true;
|
||||
|
||||
default:
|
||||
break;
|
||||
};
|
||||
|
||||
return false;
|
||||
return ((uploadPayloadRate() > 0) || (downloadPayloadRate() > 0));
|
||||
}
|
||||
|
||||
bool TorrentImpl::isInactive() const
|
||||
|
||||
Reference in New Issue
Block a user