mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 14:08:03 -06:00
Save fastresume when setting torrent speed limits
This commit is contained in:
@@ -1948,12 +1948,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)
|
||||||
|
|||||||
Reference in New Issue
Block a user