Browse Source

oops, dont cache scaled images

tags/0.6.3m1rc1
Gregory Holmes 15 years ago
parent
commit
109c28dc1f
1 changed files with 2 additions and 5 deletions
  1. 2
    5
      src/com/dmdirc/ui/IconManager.java

+ 2
- 5
src/com/dmdirc/ui/IconManager.java View File

@@ -99,11 +99,8 @@ public final class IconManager implements ConfigChangeListener {
99 99
      * @since 0.6.3
100 100
      */
101 101
     public Icon getScaledIcon(final String type, final int width, final int height) {
102
-        if (!icons.containsKey(type)) {
103
-            icons.put(type, new ImageIcon(getScaledImage(
104
-                    new ImageIcon(getIconURL(type)).getImage(), width, height)));
105
-        }
106
-        return icons.get(type);
102
+        return new ImageIcon(getScaledImage(new ImageIcon(getIconURL(type)).
103
+                getImage(), width, height));
107 104
     }
108 105
     
109 106
     /**

Loading…
Cancel
Save