mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user