Plan A fix magnet links are never paused when added

This commit is contained in:
Cœur 2023-02-15 13:26:39 +08:00
parent 60ee353a2f
commit aa9e8daa4a
2 changed files with 0 additions and 8 deletions

View File

@ -709,7 +709,6 @@ void onTorrentCompletenessChanged(tr_torrent* tor, tr_completeness status, bool
//load previous transfers
tr_ctor* ctor = tr_ctorNew(session);
tr_ctorSetPaused(ctor, TR_FORCE, true); // paused by default; unpause below after checking state history
auto const n_torrents = tr_sessionLoadTorrents(session, ctor);
tr_ctorFree(ctor);

View File

@ -152,13 +152,6 @@ bool trashDataFile(char const* filename, void* /*user_data*/, tr_error* error)
//restore GroupValue
torrent.groupValue = [history[@"GroupValue"] intValue];
//start transfer
NSNumber* active;
if (!pause && (active = history[@"Active"]) && active.boolValue)
{
[torrent startTransferNoQueue];
}
NSNumber* ratioLimit;
if ((ratioLimit = history[@"RatioLimit"]))
{