Plan A fix magnet links are never paused when added
This commit is contained in:
parent
60ee353a2f
commit
aa9e8daa4a
|
@ -709,7 +709,6 @@ void onTorrentCompletenessChanged(tr_torrent* tor, tr_completeness status, bool
|
||||||
|
|
||||||
//load previous transfers
|
//load previous transfers
|
||||||
tr_ctor* ctor = tr_ctorNew(session);
|
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);
|
auto const n_torrents = tr_sessionLoadTorrents(session, ctor);
|
||||||
tr_ctorFree(ctor);
|
tr_ctorFree(ctor);
|
||||||
|
|
||||||
|
|
|
@ -152,13 +152,6 @@ bool trashDataFile(char const* filename, void* /*user_data*/, tr_error* error)
|
||||||
//restore GroupValue
|
//restore GroupValue
|
||||||
torrent.groupValue = [history[@"GroupValue"] intValue];
|
torrent.groupValue = [history[@"GroupValue"] intValue];
|
||||||
|
|
||||||
//start transfer
|
|
||||||
NSNumber* active;
|
|
||||||
if (!pause && (active = history[@"Active"]) && active.boolValue)
|
|
||||||
{
|
|
||||||
[torrent startTransferNoQueue];
|
|
||||||
}
|
|
||||||
|
|
||||||
NSNumber* ratioLimit;
|
NSNumber* ratioLimit;
|
||||||
if ((ratioLimit = history[@"RatioLimit"]))
|
if ((ratioLimit = history[@"RatioLimit"]))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue