mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
clear cache on Darcula On/Off
This commit is contained in:
@@ -324,15 +324,21 @@ public final class IconLoader {
|
||||
private Object myRealIcon;
|
||||
@NotNull
|
||||
private final URL myUrl;
|
||||
private boolean dark;
|
||||
|
||||
public CachedImageIcon(@NotNull URL url) {
|
||||
myUrl = url;
|
||||
dark = USE_DARK_ICONS;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
private synchronized Icon getRealIcon() {
|
||||
if (isLoaderDisabled()) return EMPTY_ICON;
|
||||
|
||||
if (dark != USE_DARK_ICONS) {
|
||||
myRealIcon = null;
|
||||
dark = USE_DARK_ICONS;
|
||||
}
|
||||
Object realIcon = myRealIcon;
|
||||
if (realIcon instanceof Icon) return (Icon)realIcon;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user