From dd2efa0fe138999d1dd9a9f4afc9dabd4d2e1e93 Mon Sep 17 00:00:00 2001 From: DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> Date: Fri, 26 Aug 2022 16:59:05 +0200 Subject: Icon fix (#117) --- src/main/java/cc/polyfrost/oneconfig/renderer/Icon.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java') 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; } -- cgit