Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

Commit

Permalink
Flip if statement to be non-negated
Browse files Browse the repository at this point in the history
  • Loading branch information
mikehearn committed Dec 4, 2014
1 parent c816aa4 commit 600e949
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,11 @@ public void saveClicked(ActionEvent event) {
log.info("Saving: {}", detailsProto.getExtraDetails().getTitle());
try {
Project project;
if (!detailsProto.hasPaymentUrl()) {
if (detailsProto.hasPaymentUrl()) {
// User has to explicitly export it somewhere (not watched) so they can get it to the server.
project = Main.backend.saveProject(model.getProject());
ExportWindow.openForProject(project);
} else {
GuiUtils.informationalAlert("Folder watching",
"The folder to which you save your project file will be watched for pledge files. When you receive them from backers, just put them in the same directory and they should appear.");
// Request directory first then save, so the animations are right.
Expand All @@ -119,10 +123,6 @@ public void saveClicked(ActionEvent event) {
saveAndWatchDirectory(fp, dirPath);
});
overlayUI.done();
} else {
// User has to explicitly export it somewhere (not watched) so they can get it to the server.
project = Main.backend.saveProject(model.getProject());
ExportWindow.openForProject(project);
}
} catch (IOException e) {
log.error("Could not save project", e);
Expand Down

0 comments on commit 600e949

Please sign in to comment.