* don't delete cache/temp folders because deleting the temp folder would later crash ImageIO if java.io.tmpdir doesn't exist

This commit is contained in:
Reinhard Pointner 2012-08-11 14:23:16 +00:00
parent 03c31459a4
commit 1ab5c7d75d
1 changed files with 3 additions and 1 deletions

View File

@ -97,7 +97,9 @@ public class Main {
System.out.println("Reset preferences and clear cache");
for (File cache : getApplicationFolder().listFiles(FOLDERS)) {
if (matches("cache|temp|grape", cache.getName())) {
delete(cache);
for (File it : cache.listFiles()) {
delete(it);
}
}
}
Settings.forPackage(Main.class).clear();