From 88e83dc44a463a3005fbb9858b5faa18b8ce3f95 Mon Sep 17 00:00:00 2001 From: Glavo Date: Sat, 12 Apr 2025 17:51:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E8=83=8C=E6=99=AF=E5=9B=BE=E7=89=87=E8=B7=AF=E5=BE=84=E5=8C=85?= =?UTF-8?q?=E5=90=AB=E6=97=A0=E6=95=88=E5=AD=97=E7=AC=A6=E6=97=B6=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E5=99=A8=E5=B4=A9=E6=BA=83=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20(#3817)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jackhuang/hmcl/ui/decorator/DecoratorController.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/decorator/DecoratorController.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/decorator/DecoratorController.java index b1a1fb3dd..981a927a2 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/decorator/DecoratorController.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/decorator/DecoratorController.java @@ -203,7 +203,11 @@ public class DecoratorController { case CUSTOM: String backgroundImage = config().getBackgroundImage(); if (backgroundImage != null) - image = tryLoadImage(Paths.get(backgroundImage)); + try { + image = tryLoadImage(Paths.get(backgroundImage)); + } catch (Exception e) { + LOG.warning("Couldn't load background image", e); + } break; case NETWORK: String backgroundImageUrl = config().getBackgroundImageUrl();