mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-11 15:27:54 +00:00
Update remaining size of ignored files to 0
Also fixes a bug where ignoring the last item within a folder wouldn't recalculate the folder's size
This commit is contained in:
parent
183db3475a
commit
1b23a27acb
@ -76,7 +76,7 @@ qreal TorrentContentModelItem::progress() const
|
|||||||
qulonglong TorrentContentModelItem::remaining() const
|
qulonglong TorrentContentModelItem::remaining() const
|
||||||
{
|
{
|
||||||
Q_ASSERT(!isRootItem());
|
Q_ASSERT(!isRootItem());
|
||||||
return m_remaining;
|
return (m_priority == BitTorrent::DownloadPriority::Ignored) ? 0 : m_remaining;
|
||||||
}
|
}
|
||||||
|
|
||||||
qreal TorrentContentModelItem::availability() const
|
qreal TorrentContentModelItem::availability() const
|
||||||
|
Loading…
Reference in New Issue
Block a user