some cleanup of the Mac integration of libT queue code (we're getting there, but we're not there yet)

This commit is contained in:
Mitchell Livingston
2011-08-03 02:08:37 +00:00
parent 3430ce714c
commit 52487018ed
2 changed files with 4 additions and 15 deletions

View File

@@ -1221,11 +1221,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
for (Torrent * torrent in torrents)
[torrent startTransferNoQueue];
#warning change to updateTorrentsInQueue?
[self updateUI];
[self applyFilter];
[[fWindow toolbar] validateVisibleItems];
[self updateTorrentHistory];
[self updateTorrentsInQueue];
}
- (void) stopSelectedTorrents: (id) sender
@@ -1247,10 +1243,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
[torrents makeObjectsPerformSelector: @selector(stopTransfer)];
[self updateUI];
[self applyFilter];
[[fWindow toolbar] validateVisibleItems];
[self updateTorrentHistory];
[self updateTorrentsInQueue];
}
- (void) removeTorrents: (NSArray *) torrents deleteData: (BOOL) deleteData

View File

@@ -328,9 +328,6 @@ int trashDataFile(const char * filename)
{
tr_torrentStop(fHandle);
[self update];
#warning still needed?
[[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateQueue" object: self];
}
}
@@ -614,9 +611,8 @@ int trashDataFile(const char * filename)
- (NSString *) name
{
#warning remove
//return [NSString stringWithFormat: @"%d %@", fStat->queuePosition, [NSString stringWithUTF8String: fInfo->name]];
return fInfo->name != NULL ? [NSString stringWithUTF8String: fInfo->name] : fHashString;
return [NSString stringWithFormat: @"%d %@", fStat->queuePosition, [NSString stringWithUTF8String: fInfo->name]];
//return fInfo->name != NULL ? [NSString stringWithUTF8String: fInfo->name] : fHashString;
}
- (BOOL) isFolder