mirror of
https://github.com/transmission/transmission.git
synced 2026-02-15 07:26:49 +00:00
Pause magnet download when "Start when added" is unchecked (#2902)
Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
@@ -296,7 +296,10 @@ static void onHaveAllMetainfo(tr_torrent* tor, tr_incomplete_metadata* m)
|
||||
tor->incompleteMetadata = nullptr;
|
||||
tor->isStopping = true;
|
||||
tor->magnetVerify = true;
|
||||
tor->startAfterVerify = !tr_sessionGetPaused(tor->session);
|
||||
if (tr_sessionGetPaused(tor->session))
|
||||
{
|
||||
tor->startAfterVerify = false;
|
||||
}
|
||||
tor->markEdited();
|
||||
}
|
||||
else /* drat. */
|
||||
|
||||
@@ -1455,6 +1455,7 @@ void tr_torrentStart(tr_torrent* tor)
|
||||
{
|
||||
if (tr_isTorrent(tor))
|
||||
{
|
||||
tor->startAfterVerify = true;
|
||||
torrentStart(tor, {});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user