mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
fixing some issues with saving files
This commit is contained in:
+3
-3
@@ -73,9 +73,9 @@ public class PdeCode {
|
||||
//history.record(s, PdeHistory.SAVE);
|
||||
|
||||
try {
|
||||
System.out.println("saving to " + file);
|
||||
System.out.println("stuff to save: " + program);
|
||||
System.out.println("-------");
|
||||
//System.out.println("saving to " + file);
|
||||
//System.out.println("stuff to save: " + program);
|
||||
//System.out.println("-------");
|
||||
PdeBase.saveFile(program, file);
|
||||
|
||||
} catch (Exception e) {
|
||||
|
||||
+4
-1
@@ -1126,7 +1126,10 @@ public class PdeEditor extends JFrame
|
||||
|
||||
//if (!sketch.isModified()) {
|
||||
//if (sketch.modified) checkModified2();
|
||||
if (!sketch.modified) checkModified2();
|
||||
if (!sketch.modified) {
|
||||
checkModified2();
|
||||
return;
|
||||
}
|
||||
|
||||
String prompt = "Save changes to " + sketch.name + "? ";
|
||||
|
||||
|
||||
@@ -276,7 +276,7 @@ public class PdeEditorHeader extends JComponent /*implements MouseListener*/ {
|
||||
* Called when a new sketch is opened.
|
||||
*/
|
||||
public void rebuild() {
|
||||
System.out.println("rebuilding editor header");
|
||||
//System.out.println("rebuilding editor header");
|
||||
rebuildMenu();
|
||||
repaint();
|
||||
}
|
||||
|
||||
+1
-1
@@ -227,7 +227,7 @@ public class PdeSketch {
|
||||
//public void setCurrentModified(boolean what) {
|
||||
//public void setModified(boolean what) {
|
||||
public void setModified() {
|
||||
System.out.println("setting modified for " + current.program);
|
||||
//System.out.println("setting modified for " + current.program);
|
||||
//modified = true;
|
||||
current.modified = true;
|
||||
//editor.header.repaint();
|
||||
|
||||
Reference in New Issue
Block a user