mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 21:59:20 +01:00
fixes to make "read only" sketches handle properly, also from examples
folder
This commit is contained in:
@@ -72,17 +72,18 @@ public class PdeCode {
|
||||
// TODO re-enable history
|
||||
//history.record(s, PdeHistory.SAVE);
|
||||
|
||||
try {
|
||||
//try {
|
||||
//System.out.println("saving to " + file);
|
||||
//System.out.println("stuff to save: " + program);
|
||||
//System.out.println("-------");
|
||||
PdeBase.saveFile(program, file);
|
||||
|
||||
} catch (Exception e) {
|
||||
PdeBase.showWarning("Error saving file",
|
||||
"Could not save " + file + "\n" +
|
||||
"because of an error.", e);
|
||||
}
|
||||
PdeBase.saveFile(program, file);
|
||||
modified = false;
|
||||
|
||||
//} catch (Exception e) {
|
||||
//PdeBase.showWarning("Error saving file",
|
||||
// "Could not save '" + file.getName() + "'\n" +
|
||||
// "to '" + file.getParent() + "'\n" +
|
||||
// "because of an error.", e);
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user