Fix torrent properties not saved for paused torrents

This commit is contained in:
Chocobo1 2019-06-29 19:56:36 +08:00
commit 4ab32a76f6
No known key found for this signature in database
GPG key ID: 210D9C873253A68C

View file

@ -1285,6 +1285,8 @@ void TorrentHandle::setSequentialDownload(bool b)
m_nativeHandle.set_sequential_download(b);
m_nativeStatus.sequential_download = b; // prevent return cached value
}
saveResumeData();
}
void TorrentHandle::toggleSequentialDownload()
@ -1331,6 +1333,8 @@ void TorrentHandle::setFirstLastPiecePriorityImpl(const bool enabled, const QVec
LogMsg(tr("Download first and last piece first: %1, torrent: '%2'")
.arg((enabled ? tr("On") : tr("Off")), name()));
saveResumeData();
}
void TorrentHandle::toggleFirstLastPiecePriority()