mirror of
https://github.com/transmission/transmission
synced 2024-12-26 01:27:28 +00:00
The checking for autostarting in the inspector now correctly starts the transfer if it is able to.
This commit is contained in:
parent
4151da3b5d
commit
c8ce7ebd21
2 changed files with 4 additions and 7 deletions
|
@ -1039,8 +1039,7 @@ static void sleepCallBack(void * controller, io_service_t y,
|
|||
|
||||
- (void) torrentStartSettingChange: (NSNotification *) notification
|
||||
{
|
||||
Torrent * torrent = [notification object];
|
||||
[self attemptToStartAuto: torrent];
|
||||
[self attemptToStartAuto: [notification object]];
|
||||
|
||||
[self updateUI: nil];
|
||||
[self updateTorrentHistory];
|
||||
|
@ -1050,7 +1049,6 @@ static void sleepCallBack(void * controller, io_service_t y,
|
|||
- (void) attemptToStartAuto: (Torrent *) torrent
|
||||
{
|
||||
#warning should check if transfer was already done
|
||||
NSLog([torrent name]);
|
||||
if (![torrent waitingToStart])
|
||||
return;
|
||||
|
||||
|
|
|
@ -471,10 +471,9 @@
|
|||
|
||||
- (void) setWaitToStart: (id) sender
|
||||
{
|
||||
Torrent * torrent;
|
||||
NSEnumerator * enumerator = [fTorrents objectEnumerator];
|
||||
while ((torrent = [enumerator nextObject]))
|
||||
[torrent setWaitToStart: [sender state]];
|
||||
#warning make work with multiples
|
||||
Torrent * torrent = [fTorrents objectAtIndex: 0];
|
||||
[torrent setWaitToStart: [sender state]];
|
||||
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName: @"TorrentStartSettingChange" object: torrent];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue