Skip to content

Commit

Permalink
for macOS by default exclude .DS_Store files from uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
kapitainsky committed Oct 29, 2019
1 parent 333f799 commit aa826eb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,16 @@ MainWindow::MainWindow() {
// if defaultDownloadOptions does not exist create new empty key
settings->setValue("Settings/defaultDownloadOptions", "");
};
#ifdef Q_OS_OSX
//for macOS by default exclude .DS_Store files from uploads
if (!(settings->contains("Settings/defaultUploadOptions"))) {
// if defaultDownloadOptions does not exist create new empty key
settings->setValue("Settings/defaultUploadOptions", "--exclude .DS_Store");
#else
if (!(settings->contains("Settings/defaultUploadOptions"))) {
// if defaultDownloadOptions does not exist create new empty key
settings->setValue("Settings/defaultUploadOptions", "");
#endif
};
}

Expand Down

1 comment on commit aa826eb

@kapitainsky
Copy link
Owner Author

Choose a reason for hiding this comment

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

fix for #25

Please sign in to comment.