mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
Auto-start check works correctly (needed the torrent to update beforehand).
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user