Skip to content

Commit 9a441d6

Browse files
committed
Do not auto-save on verify/upload if sketch is readonly
1 parent 5a6af2c commit 9a441d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/processing/app/Editor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1888,7 +1888,7 @@ protected void handleFindReference() {
18881888
public void handleRun(final boolean verbose) {
18891889
internalCloseRunner();
18901890
if (Preferences.getBoolean("save.verifyUpload")) {
1891-
if (sketch.isModified()) {
1891+
if (sketch.isModified() && !sketch.isReadOnly()) {
18921892
handleSave(true);
18931893
}
18941894
}
@@ -2375,7 +2375,7 @@ public boolean serialPrompt() {
23752375
*/
23762376
synchronized public void handleExport(final boolean usingProgrammer) {
23772377
if (Preferences.getBoolean("save.verifyUpload")) {
2378-
if (sketch.isModified()) {
2378+
if (sketch.isModified() && !sketch.isReadOnly()) {
23792379
handleSave(true);
23802380
}
23812381
}

0 commit comments

Comments
 (0)