Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default download location? #35

Open
mdbraber opened this issue Feb 27, 2020 · 1 comment
Open

Default download location? #35

mdbraber opened this issue Feb 27, 2020 · 1 comment

Comments

@mdbraber
Copy link

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

@kfix
Copy link
Owner

kfix commented Aug 8, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants