fix: don't focus window when dropping a file on it
This commit is contained in:
1 parent
216c5d8b8e
commit
c386a0c439
1 file changed
+2
@@ -252,6 +252,8 @@ class ThumbnailView: NSStackView {
|
||||
}
|
||||
|
||||
override func performDragOperation(_ sender: NSDraggingInfo) -> Bool {
|
||||
dragAndDropTimer?.invalidate()
|
||||
dragAndDropTimer = nil
|
||||
let urls = sender.draggingPasteboard.readObjects(forClasses: [NSURL.self]) as! [URL]
|
||||
let appUrl = window_!.application.runningApplication.bundleURL!
|
||||
let open = try? NSWorkspace.shared.open(urls, withApplicationAt: appUrl, options: [], configuration: [:])
|
||||
|
||||
Reference in new issue
Block a user