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

User Selectable Downloads Path #314

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

User Selectable Downloads Path #314

wants to merge 5 commits into from

Conversation

aaeric
Copy link

@aaeric aaeric commented Dec 22, 2019

Under Preferences->Advanced, I added an option for the user to manually select a path for their dcc downloads. If the user doesn't specify, it will first try to place in ~/Downloads and if not it will fall back to ~/Desktop.

@aaeric aaeric requested review from psychs and removed request for psychs January 15, 2020 14:29
NSFileManager* fm = [NSFileManager defaultManager];
BOOL isDir = NO;
if ([fm fileExistsAtPath:path isDirectory:&isDir]) {
path = @"~/Downloads";
;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can remove this bit if you switch the if to become negative, and then you'll only need the part which you currently have in else

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

Successfully merging this pull request may close these issues.

2 participants