mirror of
https://github.com/transmission/transmission
synced 2025-03-10 06:02:57 +00:00
mac client will verify data with ipc
This commit is contained in:
parent
9795a01ddc
commit
6cbec1912b
3 changed files with 3794 additions and 3820 deletions
|
@ -167,7 +167,8 @@ typedef enum
|
|||
|
||||
- (void) announceSelectedTorrents: (id) sender;
|
||||
|
||||
- (void) resetCacheForSelectedTorrents: (id) sender;
|
||||
- (void) verifySelectedTorrents: (id) sender;
|
||||
- (void) verifyTorrents: (NSArray *) torrents;
|
||||
|
||||
- (void) showPreferenceWindow: (id) sender;
|
||||
|
||||
|
|
|
@ -1061,11 +1061,6 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
|||
[self updateTorrentHistory];
|
||||
}
|
||||
|
||||
- (void) verifyTorrents: (NSArray *) torrents
|
||||
{
|
||||
// FIXME BentMyWookie
|
||||
}
|
||||
|
||||
- (void) removeTorrents: (NSArray *) torrents deleteData: (BOOL) deleteData deleteTorrent: (BOOL) deleteTorrent
|
||||
{
|
||||
[torrents retain];
|
||||
|
@ -1336,9 +1331,14 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
|||
}
|
||||
}
|
||||
|
||||
- (void) resetCacheForSelectedTorrents: (id) sender
|
||||
- (void) verifySelectedTorrents: (id) sender
|
||||
{
|
||||
NSEnumerator * enumerator = [[fTableView selectedTorrents] objectEnumerator];
|
||||
[self verifyTorrents: [fTableView selectedTorrents]];
|
||||
}
|
||||
|
||||
- (void) verifyTorrents: (NSArray *) torrents
|
||||
{
|
||||
NSEnumerator * enumerator = [torrents objectEnumerator];
|
||||
Torrent * torrent;
|
||||
while ((torrent = [enumerator nextObject]))
|
||||
[torrent resetCache];
|
||||
|
@ -3572,7 +3572,7 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
|||
}
|
||||
|
||||
//enable reset cache item
|
||||
if (action == @selector(resetCacheForSelectedTorrents:))
|
||||
if (action == @selector(verifySelectedTorrents:))
|
||||
return canUseTable && [fTableView numberOfSelectedRows] > 0;
|
||||
|
||||
//enable move torrent file item
|
||||
|
@ -4088,7 +4088,7 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
|||
if (!torrents)
|
||||
return NO;
|
||||
|
||||
[self startTorrents: torrents];
|
||||
[self verifyTorrents: torrents];
|
||||
return YES;
|
||||
}
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue