|
|
|
@ -26,6 +26,7 @@ import java.awt.BorderLayout;
|
|
|
|
|
import java.awt.Dimension; |
|
|
|
|
import java.awt.event.ActionEvent; |
|
|
|
|
import java.awt.event.ActionListener; |
|
|
|
|
import java.io.File; |
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -170,6 +171,10 @@ public class ModernUIPane<T> extends BasicPane {
|
|
|
|
|
public void clearCache() { |
|
|
|
|
if (browser != null) { |
|
|
|
|
browser.getCacheStorage().clearCache(); |
|
|
|
|
File file = new File(browser.getContext().getCacheDir()); |
|
|
|
|
if (file.exists()) { |
|
|
|
|
file.delete(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|