mirror of
https://github.com/transmission/transmission
synced 2024-12-25 09:13:06 +00:00
#3675 handle trashing data over RPD in the Mac client
This commit is contained in:
parent
1fabb9b9ea
commit
c165ff1463
2 changed files with 11 additions and 0 deletions
|
@ -274,6 +274,7 @@ typedef enum
|
|||
- (void) rpcCallback: (tr_rpc_callback_type) type forTorrentStruct: (struct tr_torrent *) torrentStruct;
|
||||
- (void) rpcAddTorrentStruct: (NSValue *) torrentStructPtr;
|
||||
- (void) rpcRemoveTorrent: (Torrent *) torrent;
|
||||
- (void) rpcRemoveTorrentDeleteData: (Torrent *) torrent;
|
||||
- (void) rpcStartedStoppedTorrent: (Torrent *) torrent;
|
||||
- (void) rpcChangedTorrent: (Torrent *) torrent;
|
||||
- (void) rpcMovedTorrent: (Torrent *) torrent;
|
||||
|
|
|
@ -4436,6 +4436,10 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
|||
[self performSelectorOnMainThread: @selector(rpcRemoveTorrent:) withObject: torrent waitUntilDone: NO];
|
||||
break;
|
||||
|
||||
case TR_RPC_TORRENT_TRASHING:
|
||||
[self performSelectorOnMainThread: @selector(rpcRemoveTorrentDeleteData:) withObject: torrent waitUntilDone: NO];
|
||||
break;
|
||||
|
||||
case TR_RPC_TORRENT_CHANGED:
|
||||
[self performSelectorOnMainThread: @selector(rpcChangedTorrent:) withObject: torrent waitUntilDone: NO];
|
||||
break;
|
||||
|
@ -4485,6 +4489,12 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
|||
[torrent release];
|
||||
}
|
||||
|
||||
- (void) rpcRemoveTorrentDeleteData: (Torrent *) torrent
|
||||
{
|
||||
[self confirmRemoveTorrents: [[NSArray arrayWithObject: torrent] retain] deleteData: YES];
|
||||
[torrent release];
|
||||
}
|
||||
|
||||
- (void) rpcStartedStoppedTorrent: (Torrent *) torrent
|
||||
{
|
||||
[torrent update];
|
||||
|
|
Loading…
Reference in a new issue