mirror of
https://github.com/transmission/transmission
synced 2025-02-20 13:16:53 +00:00
Auto-start check works correctly (needed the torrent to update beforehand).
This commit is contained in:
parent
b057efe9fa
commit
dd5c37cfd7
3 changed files with 7 additions and 5 deletions
|
@ -476,6 +476,7 @@ static void sleepCallBack(void * controller, io_service_t y,
|
|||
[[fTorrents objectAtIndex: i] startTransfer];
|
||||
|
||||
[self updateUI: nil];
|
||||
[self reloadInspector: nil];
|
||||
[self updateTorrentHistory];
|
||||
}
|
||||
|
||||
|
@ -505,6 +506,7 @@ static void sleepCallBack(void * controller, io_service_t y,
|
|||
[[fTorrents objectAtIndex: i] stopTransfer];
|
||||
|
||||
[self updateUI: nil];
|
||||
[self reloadInspector: nil];
|
||||
[self updateTorrentHistory];
|
||||
}
|
||||
|
||||
|
@ -1069,6 +1071,7 @@ static void sleepCallBack(void * controller, io_service_t y,
|
|||
[self attemptToStartAuto: [notification object]];
|
||||
|
||||
[self updateUI: nil];
|
||||
[self reloadInspector: nil];
|
||||
[self updateTorrentHistory];
|
||||
}
|
||||
|
||||
|
|
|
@ -191,14 +191,13 @@
|
|||
[fFileTable reloadData];
|
||||
|
||||
//set wait to start
|
||||
if (numberSelected == 1)
|
||||
if ([fTorrents count] == 1)
|
||||
{
|
||||
#warning make work for multiple torrents
|
||||
Torrent * torrent = [fTorrents objectAtIndex: 0];
|
||||
[fWaitToStartButton setState: [torrent waitingToStart]];
|
||||
|
||||
#warning disable if actively downloading or finished
|
||||
[fWaitToStartButton setEnabled:
|
||||
|
||||
[fWaitToStartButton setEnabled: ![torrent isActive] && [torrent progress] < 1.0 &&
|
||||
[[[NSUserDefaults standardUserDefaults] stringForKey: @"StartSetting"] isEqualToString: @"Wait"]];
|
||||
}
|
||||
else
|
||||
|
|
|
@ -335,7 +335,7 @@
|
|||
|
||||
- (NSString *) name
|
||||
{
|
||||
return [NSString stringWithUTF8String: fInfo->name];
|
||||
return [[NSString stringWithUTF8String: fInfo->name] stringByAppendingFormat: @" %d", fOrderValue];
|
||||
}
|
||||
|
||||
- (uint64_t) size
|
||||
|
|
Loading…
Reference in a new issue