diff options
author | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-08-26 16:59:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-26 16:59:05 +0200 |
commit | dd2efa0fe138999d1dd9a9f4afc9dabd4d2e1e93 (patch) | |
tree | 7db707c196be189e5158dfb49626ed8372846673 /src/main/java/cc | |
parent | bf2cf4d8166a36ed089040889ad950ad3b71bc08 (diff) | |
download | OneConfig-dd2efa0fe138999d1dd9a9f4afc9dabd4d2e1e93.tar.gz OneConfig-dd2efa0fe138999d1dd9a9f4afc9dabd4d2e1e93.tar.bz2 OneConfig-dd2efa0fe138999d1dd9a9f4afc9dabd4d2e1e93.zip |
Icon fix (#117)
Diffstat (limited to 'src/main/java/cc')
-rw-r--r-- | src/main/java/cc/polyfrost/oneconfig/renderer/Icon.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/renderer/Icon.java b/src/main/java/cc/polyfrost/oneconfig/renderer/Icon.java index a256b57..cc4b292 100644 --- a/src/main/java/cc/polyfrost/oneconfig/renderer/Icon.java +++ b/src/main/java/cc/polyfrost/oneconfig/renderer/Icon.java @@ -33,7 +33,7 @@ public class Icon { public final Type type; public Icon(String filePath) { - this.icon = filePath; + this.icon = filePath.endsWith(".svg") ? new SVG(filePath) : new Image(filePath); this.type = filePath.endsWith(".svg") ? Type.SVG : Type.IMAGE; } |