mirror of
https://github.com/transmission/transmission
synced 2024-12-26 09:37:56 +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
|
- (void) torrentStartSettingChange: (NSNotification *) notification
|
||||||
{
|
{
|
||||||
Torrent * torrent = [notification object];
|
[self attemptToStartAuto: [notification object]];
|
||||||
[self attemptToStartAuto: torrent];
|
|
||||||
|
|
||||||
[self updateUI: nil];
|
[self updateUI: nil];
|
||||||
[self updateTorrentHistory];
|
[self updateTorrentHistory];
|
||||||
|
@ -1050,7 +1049,6 @@ static void sleepCallBack(void * controller, io_service_t y,
|
||||||
- (void) attemptToStartAuto: (Torrent *) torrent
|
- (void) attemptToStartAuto: (Torrent *) torrent
|
||||||
{
|
{
|
||||||
#warning should check if transfer was already done
|
#warning should check if transfer was already done
|
||||||
NSLog([torrent name]);
|
|
||||||
if (![torrent waitingToStart])
|
if (![torrent waitingToStart])
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
|
@ -471,9 +471,8 @@
|
||||||
|
|
||||||
- (void) setWaitToStart: (id) sender
|
- (void) setWaitToStart: (id) sender
|
||||||
{
|
{
|
||||||
Torrent * torrent;
|
#warning make work with multiples
|
||||||
NSEnumerator * enumerator = [fTorrents objectEnumerator];
|
Torrent * torrent = [fTorrents objectAtIndex: 0];
|
||||||
while ((torrent = [enumerator nextObject]))
|
|
||||||
[torrent setWaitToStart: [sender state]];
|
[torrent setWaitToStart: [sender state]];
|
||||||
|
|
||||||
[[NSNotificationCenter defaultCenter] postNotificationName: @"TorrentStartSettingChange" object: torrent];
|
[[NSNotificationCenter defaultCenter] postNotificationName: @"TorrentStartSettingChange" object: torrent];
|
||||||
|
|
Loading…
Reference in a new issue