mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
fix for sketch not properly resetting its codeCount and hiddenCount in
load()
This commit is contained in:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user