mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03:00
Do not auto-save on verify/upload if sketch is readonly
This commit is contained in:
@ -1888,7 +1888,7 @@ public class Editor extends JFrame implements RunnerListener {
|
|||||||
public void handleRun(final boolean verbose) {
|
public void handleRun(final boolean verbose) {
|
||||||
internalCloseRunner();
|
internalCloseRunner();
|
||||||
if (Preferences.getBoolean("save.verifyUpload")) {
|
if (Preferences.getBoolean("save.verifyUpload")) {
|
||||||
if (sketch.isModified()) {
|
if (sketch.isModified() && !sketch.isReadOnly()) {
|
||||||
handleSave(true);
|
handleSave(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2375,7 +2375,7 @@ public class Editor extends JFrame implements RunnerListener {
|
|||||||
*/
|
*/
|
||||||
synchronized public void handleExport(final boolean usingProgrammer) {
|
synchronized public void handleExport(final boolean usingProgrammer) {
|
||||||
if (Preferences.getBoolean("save.verifyUpload")) {
|
if (Preferences.getBoolean("save.verifyUpload")) {
|
||||||
if (sketch.isModified()) {
|
if (sketch.isModified() && !sketch.isReadOnly()) {
|
||||||
handleSave(true);
|
handleSave(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user