aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc
diff options
context:
space:
mode:
authorDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-08-26 16:59:05 +0200
committerGitHub <noreply@github.com>2022-08-26 16:59:05 +0200
commitdd2efa0fe138999d1dd9a9f4afc9dabd4d2e1e93 (patch)
tree7db707c196be189e5158dfb49626ed8372846673 /src/main/java/cc
parentbf2cf4d8166a36ed089040889ad950ad3b71bc08 (diff)
downloadOneConfig-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.java2
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;
}