@@ -131,6 +131,7 @@ protected void load(boolean forceUpdate) throws IOException {
131
131
* Handler for the New Code menu option.
132
132
*/
133
133
public void handleNewCode () {
134
+ editor .status .clearState ();
134
135
// make sure the user didn't hide the sketch folder
135
136
ensureExistence ();
136
137
@@ -153,6 +154,7 @@ public void handleNewCode() {
153
154
* Handler for the Rename Code menu option.
154
155
*/
155
156
public void handleRenameCode () {
157
+ editor .status .clearState ();
156
158
// make sure the user didn't hide the sketch folder
157
159
ensureExistence ();
158
160
@@ -430,6 +432,7 @@ protected void nameCode(String newName) {
430
432
* Remove a piece of code from the sketch and from the disk.
431
433
*/
432
434
public void handleDeleteCode () {
435
+ editor .status .clearState ();
433
436
// make sure the user didn't hide the sketch folder
434
437
ensureExistence ();
435
438
@@ -1223,8 +1226,6 @@ private void ensureExistence() {
1223
1226
* Returns true if this is a read-only sketch. Used for the
1224
1227
* examples directory, or when sketches are loaded from read-only
1225
1228
* volumes or folders without appropriate permissions.
1226
- * @param librariesPaths
1227
- * @param examplesPath
1228
1229
*/
1229
1230
public boolean isReadOnly (LibraryList libraries , String examplesPath ) {
1230
1231
String apath = data .getFolder ().getAbsolutePath ();
0 commit comments