MacPin icon indicating copy to clipboard operation
MacPin copied to clipboard

Default download location?

Open mdbraber opened this issue 5 years ago • 1 comments

Is is possible to skip the Download dialog and directly download files to a default location?

mdbraber avatar Feb 27 '20 16:02 mdbraber

anything's possible, I guess!

there's an NSSavePanel that's created by this function in modules/MacPin/_macos/WebViewDelegatesOSX.swift:

extension WebViewControllerOSX { // _WKDownloadDelegate
    override func _download(_ download: _WKDownload!, decideDestinationWithSuggestedFilename filename: String!, allowOverwrite: UnsafeMutablePointer<ObjCBool>) -> String! {

Perhaps that modal could be skipped if NSUserDefaults has some kind of special key saved for a download location.

TBH I'm not inclined to add that shortcut as I don't really use MacPin as a daily driver that much and rarely download files with it.

kfix avatar Aug 08 '21 06:08 kfix