Browse Source

Save fastresume when setting torrent speed limits

adaptive-webui-19844
thalieht 4 years ago
parent
commit
fbb8f0cbf5
  1. 8
      src/base/bittorrent/torrenthandleimpl.cpp

8
src/base/bittorrent/torrenthandleimpl.cpp

@ -1948,12 +1948,20 @@ void TorrentHandleImpl::setSeedingTimeLimit(int limit) @@ -1948,12 +1948,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…
Cancel
Save