|
3 | 3 | /* |
4 | 4 | Part of the Processing project - http://processing.org |
5 | 5 |
|
| 6 | + Copyright (c) 2012-14 The Processing Foundation |
6 | 7 | Copyright (c) 2004-12 Ben Fry and Casey Reas |
7 | 8 | Copyright (c) 2001-04 Massachusetts Institute of Technology |
8 | 9 |
|
@@ -2586,16 +2587,16 @@ public boolean handleSaveAs() { |
2586 | 2587 | statusNotice(Language.text("editor.status.saving")); |
2587 | 2588 | try { |
2588 | 2589 | if (sketch.saveAs()) { |
2589 | | - //a saveAs moves where the files are, so a listener must be attached to the new location |
2590 | | - initFileChangeListener(); |
| 2590 | + // Disabling for 3.0a4 |
| 2591 | + if (false && Preferences.getBoolean("editor.watcher")) { |
| 2592 | + // "Save As" moves where the files are, so a listener must be |
| 2593 | + // attached to the new location. |
| 2594 | + // TODO shouldn't this remove the old listener? |
| 2595 | + initFileChangeListener(); |
| 2596 | + } |
2591 | 2597 | // statusNotice("Done Saving."); |
2592 | | - // status is now printed from Sketch so that "Done Saving." |
2593 | | - // is only printed after Save As when progress bar is shown. |
2594 | | - |
2595 | | - // Disabling this for 0125, instead rebuild the menu inside |
2596 | | - // the Save As method of the Sketch object, since that's the |
2597 | | - // only one who knows whether something was renamed. |
2598 | | - //sketchbook.rebuildMenusAsync(); |
| 2598 | + // status is now printed from Sketch so that "Done Saving." |
| 2599 | + // is only printed after Save As when progress bar is shown. |
2599 | 2600 | } else { |
2600 | 2601 | statusNotice(Language.text("editor.status.saving.canceled")); |
2601 | 2602 | return false; |
|
0 commit comments