mirror of
https://github.com/transmission/transmission
synced 2025-03-10 06:02:57 +00:00
update the active filer when a torrent changes from stalled to unstalled
This commit is contained in:
parent
b2dafeed8e
commit
d2ff4d99f3
2 changed files with 2 additions and 1 deletions
|
@ -160,6 +160,7 @@
|
|||
if ([fDeleteCheck state] == NSOnState)
|
||||
[fTorrent trashTorrent];
|
||||
|
||||
//ensure last, since it releases this controller
|
||||
[fController askOpenConfirmed: self add: YES];
|
||||
}
|
||||
|
||||
|
|
|
@ -273,7 +273,7 @@ void completenessChangeCallback(tr_torrent * torrent, cp_status_t status, void *
|
|||
&& [fDefaults integerForKey: @"StalledMinutes"] < [self stalledMinutes];
|
||||
|
||||
//update queue for checking (from downloading to seeding), stalled, or error
|
||||
if ((wasChecking && !fChecking) || (!wasStalled && fStalled) || (!wasError && fError && [self isActive]))
|
||||
if ((wasChecking && !fChecking) || (wasStalled != fStalled) || (!wasError && fError && [self isActive]))
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateQueue" object: self];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue