mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -07:00
Handle torrent "paused" state at application level
This commit is contained in:
parent
b249216db6
commit
85bd0feee0
10 changed files with 157 additions and 146 deletions
|
@ -888,7 +888,10 @@ void TorrentsController::setForceStartAction()
|
|||
|
||||
const bool value {parseBool(params()["value"], false)};
|
||||
const QStringList hashes {params()["hashes"].split('|')};
|
||||
applyToTorrents(hashes, [value](BitTorrent::TorrentHandle *const torrent) { torrent->resume(value); });
|
||||
applyToTorrents(hashes, [value](BitTorrent::TorrentHandle *const torrent)
|
||||
{
|
||||
torrent->resume(value ? BitTorrent::TorrentOperatingMode::Forced : BitTorrent::TorrentOperatingMode::AutoManaged);
|
||||
});
|
||||
}
|
||||
|
||||
void TorrentsController::deleteAction()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue