Auto-start check works correctly (needed the torrent to update beforehand).

This commit is contained in:
Mitchell Livingston
2006-06-25 18:17:17 +00:00
parent b057efe9fa
commit dd5c37cfd7
3 changed files with 7 additions and 5 deletions

View File

@@ -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