mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-21 08:09:35 +08:00
Fix status of torrents without metadata
This commit is contained in:
parent
9c938b91b7
commit
be5cb1683b
@ -777,10 +777,10 @@ void TorrentHandleImpl::updateState()
|
||||
{
|
||||
if (isPaused())
|
||||
m_state = TorrentState::PausedDownloading;
|
||||
else if (m_nativeStatus.state == lt::torrent_status::downloading_metadata)
|
||||
m_state = TorrentState::DownloadingMetadata;
|
||||
else if (m_session->isQueueingSystemEnabled() && isQueued())
|
||||
m_state = TorrentState::QueuedDownloading;
|
||||
else if (m_nativeStatus.state == lt::torrent_status::downloading_metadata) // must come after queue check
|
||||
m_state = TorrentState::DownloadingMetadata;
|
||||
else if (isForced())
|
||||
m_state = TorrentState::ForcedDownloading;
|
||||
else if (m_nativeStatus.download_payload_rate > 0)
|
||||
|
Loading…
Reference in New Issue
Block a user