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