From c8929c80d95f04a0d3ca4d0e386e445c2e9cbfb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=9E=E5=BA=90?= <109708109+CiiLu@users.noreply.github.com> Date: Sun, 2 Aug 2026 23:50:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E9=97=AD=E5=8A=A8=E7=94=BB=E6=97=B6?= =?UTF-8?q?=E8=B7=B3=E8=BF=87=E4=BE=A7=E8=BE=B9=E6=A0=8F=E5=9B=BE=E6=A0=87?= =?UTF-8?q?=E8=BF=87=E6=B8=A1=E5=8A=A8=E7=94=BB=20(#6581)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Glavo --- HMCL/src/main/java/org/jackhuang/hmcl/ui/SVGContainer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/SVGContainer.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/SVGContainer.java index ea7ffd4a13..53e4d172e0 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/SVGContainer.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/SVGContainer.java @@ -23,6 +23,7 @@ import javafx.animation.Timeline; import javafx.scene.Parent; import javafx.scene.shape.SVGPath; import javafx.util.Duration; +import org.jackhuang.hmcl.ui.animation.AnimationUtils; import org.jackhuang.hmcl.ui.animation.Motion; /// A lightweight wrapper for displaying [SVG] icons. @@ -108,7 +109,7 @@ public final class SVGContainer extends Parent { SVG oldIcon = this.icon; this.icon = newIcon; - if (animationDuration.equals(Duration.ZERO)) { + if (animationDuration.equals(Duration.ZERO) || !AnimationUtils.isAnimationEnabled()) { path.setContent(newIcon.getPath()); path.setOpacity(1); if (getChildren().size() != 1)