From 9928fa4c812ae8bdb4d97a7e52e9a318b682014e Mon Sep 17 00:00:00 2001 From: benfry Date: Thu, 15 Dec 2005 19:31:19 +0000 Subject: [PATCH] fix for sketch not properly resetting its codeCount and hiddenCount in load() --- app/Sketch.java | 5 +++++ todo.txt | 10 ++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/app/Sketch.java b/app/Sketch.java index f7c6c9c76..6721265eb 100644 --- a/app/Sketch.java +++ b/app/Sketch.java @@ -151,6 +151,11 @@ public class Sketch { // get list of files in the sketch folder String list[] = folder.list(); + // reset these because load() may be called after an + // external editor event. (fix for 0099) + codeCount = 0; + hiddenCount = 0; + for (int i = 0; i < list.length; i++) { if (list[i].endsWith(".pde")) codeCount++; else if (list[i].endsWith(".java")) codeCount++; diff --git a/todo.txt b/todo.txt index 2330e1aa0..eef635044 100644 --- a/todo.txt +++ b/todo.txt @@ -21,10 +21,12 @@ X http://processing.org/discourse/yabb_beta/YaBB.cgi?board=SoftwareBugs;action X make editor save button highlight on ctrl-s X same goes for the other editor buttons X http://dev.processing.org/bugs/show_bug.cgi?id=242 - -_ deal with "could not delete stderr.txt" messages -_ probably screwed up the temp folder stuff -_ build folder is randomized, being recreated on each build +X deal with "could not delete stderr.txt" messages +X probably screwed up the temp folder stuff +X build folder is randomized, being recreated on each build +X mark temp build folder for deletion on exit +X properly remove console files on exit +X in previous releases this was filling up the temp dir with a lotta garbage _ we're breaking some mac human interface guidelines _ should be using a menu factory to create menus for all sub-windows