mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 05:13:30 -07:00
Save fastresume when setting torrent speed limits
This commit is contained in:
parent
f9ee5bdb59
commit
442f0df613
1 changed files with 8 additions and 0 deletions
|
@ -1935,12 +1935,20 @@ void TorrentHandleImpl::setSeedingTimeLimit(int limit)
|
|||
|
||||
void TorrentHandleImpl::setUploadLimit(const int limit)
|
||||
{
|
||||
if (limit == uploadLimit())
|
||||
return;
|
||||
|
||||
m_nativeHandle.set_upload_limit(limit);
|
||||
saveResumeData();
|
||||
}
|
||||
|
||||
void TorrentHandleImpl::setDownloadLimit(const int limit)
|
||||
{
|
||||
if (limit == downloadLimit())
|
||||
return;
|
||||
|
||||
m_nativeHandle.set_download_limit(limit);
|
||||
saveResumeData();
|
||||
}
|
||||
|
||||
void TorrentHandleImpl::setSuperSeeding(const bool enable)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue