Update Torrent.mm (#2777)

This commit is contained in:
SweetPPro 2022-03-16 21:16:23 +01:00 committed by GitHub
parent 0be920156b
commit 4f2472cd93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -197,6 +197,9 @@ bool trashDataFile(char const* filename, tr_error** error)
- (void)setResumeStatusForTorrent:(Torrent*)torrent withHistory:(NSDictionary*)history forcePause:(BOOL)pause
{
//restore GroupValue
torrent.groupValue = [history[@"GroupValue"] intValue];
//start transfer
NSNumber* active;
if (!pause && (active = history[@"Active"]) && active.boolValue)