소스 검색

oops, dont cache scaled images

tags/0.6.3m1rc1
Gregory Holmes 15 년 전
부모
커밋
109c28dc1f
1개의 변경된 파일2개의 추가작업 그리고 5개의 파일을 삭제
  1. 2
    5
      src/com/dmdirc/ui/IconManager.java

+ 2
- 5
src/com/dmdirc/ui/IconManager.java 파일 보기

@@ -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…
취소
저장