Save fastresume when setting torrent speed limits

This commit is contained in:
thalieht 2020-11-18 13:58:12 +02:00 committed by sledgehammer999
commit 442f0df613
No known key found for this signature in database
GPG key ID: 6E4A2D025B7CC9A2

View file

@ -1935,12 +1935,20 @@ void TorrentHandleImpl::setSeedingTimeLimit(int limit)
void TorrentHandleImpl::setUploadLimit(const int limit) void TorrentHandleImpl::setUploadLimit(const int limit)
{ {
if (limit == uploadLimit())
return;
m_nativeHandle.set_upload_limit(limit); m_nativeHandle.set_upload_limit(limit);
saveResumeData();
} }
void TorrentHandleImpl::setDownloadLimit(const int limit) void TorrentHandleImpl::setDownloadLimit(const int limit)
{ {
if (limit == downloadLimit())
return;
m_nativeHandle.set_download_limit(limit); m_nativeHandle.set_download_limit(limit);
saveResumeData();
} }
void TorrentHandleImpl::setSuperSeeding(const bool enable) void TorrentHandleImpl::setSuperSeeding(const bool enable)