Browse Source

Fix support for dragging urls in Mac

Pedro Belo 8 years ago
parent
commit
89e8ad4947
1 changed files with 1 additions and 1 deletions
  1. 1 1
      atom/browser/ui/tray_icon_cocoa.mm

+ 1 - 1
atom/browser/ui/tray_icon_cocoa.mm

@@ -297,7 +297,6 @@ const CGFloat kVerticalTitleMargin = 2;
 
   if (NSPointInRect([sender draggingLocation], self.frame)) {
     trayIcon_->NotifyDrop();
-    [self handleDrop:sender];
   }
 }
 
@@ -325,6 +324,7 @@ const CGFloat kVerticalTitleMargin = 2;
 }
 
 - (BOOL)performDragOperation:(id <NSDraggingInfo>)sender {
+  [self handleDrop:sender];
   return YES;
 }