mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
The checking for autostarting in the inspector now correctly starts the transfer if it is able to.
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user