aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;
}