mirror of
https://github.com/transmission/transmission
synced 2024-12-27 18:18:10 +00:00
#2787 allow dragging of URLs onto the dock icon once again
This commit is contained in:
parent
7f236280ae
commit
312339d3c2
1 changed files with 8 additions and 8 deletions
|
@ -345,14 +345,6 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
|||
|
||||
tr_sessionSetRPCCallback(fLib, rpcCallback, self);
|
||||
|
||||
//register for dock icon drags
|
||||
[[NSAppleEventManager sharedAppleEventManager] setEventHandler: self andSelector: @selector(handleOpenContentsEvent:replyEvent:)
|
||||
forEventClass: kCoreEventClass andEventID: kAEOpenContents];
|
||||
|
||||
//register for magnet URLs
|
||||
[[NSAppleEventManager sharedAppleEventManager] setEventHandler: self andSelector: @selector(handleOpenContentsEvent:replyEvent:)
|
||||
forEventClass: kInternetEventClass andEventID: kAEGetURL];
|
||||
|
||||
[GrowlApplicationBridge setGrowlDelegate: self];
|
||||
|
||||
[[UKKQueue sharedFileWatcher] setDelegate: self];
|
||||
|
@ -578,6 +570,14 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
|||
{
|
||||
[NSApp setServicesProvider: self];
|
||||
|
||||
//register for dock icon drags (has to be in applicationDidFinishLaunching: to work)
|
||||
[[NSAppleEventManager sharedAppleEventManager] setEventHandler: self andSelector: @selector(handleOpenContentsEvent:replyEvent:)
|
||||
forEventClass: kCoreEventClass andEventID: kAEOpenContents];
|
||||
|
||||
//register for magnet URLs
|
||||
[[NSAppleEventManager sharedAppleEventManager] setEventHandler: self andSelector: @selector(handleOpenContentsEvent:replyEvent:)
|
||||
forEventClass: kInternetEventClass andEventID: kAEGetURL];
|
||||
|
||||
//auto importing
|
||||
[self checkAutoImportDirectory];
|
||||
|
||||
|
|
Loading…
Reference in a new issue