Skip to content

Commit 9d270f7

Browse files
committed
Changed when de folder of the sketch gets updated
Changed the location where the folder gets updated. This is now the latest step when performing a save as operation.
1 parent af2f4a5 commit 9d270f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arduino-core/src/processing/app/Sketch.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,6 @@ public void saveAs(File newFolder) throws IOException {
352352
file.saveAs(new File(newFolder, file.getFileName()));
353353
}
354354

355-
folder = newFolder;
356355

357356
// Copy the data folder (this may take a while.. add progress bar?)
358357
if (getDataFolder().exists()) {
@@ -361,6 +360,8 @@ public void saveAs(File newFolder) throws IOException {
361360
FileUtils.copy(getDataFolder(), newDataFolder);
362361
}
363362

363+
// Change folder to the new folder
364+
folder = newFolder;
364365

365366
}
366367

0 commit comments

Comments
 (0)