From 80b2242e4d4fff82fa0b9433492ff07d9b00af46 Mon Sep 17 00:00:00 2001 From: Damon Lu <59256766+WhatDamon@users.noreply.github.com> Date: Thu, 13 Nov 2025 16:32:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=20macOS=20=E4=B8=8B=E7=A6=81=E7=94=A8?= =?UTF-8?q?=E6=9C=80=E5=B0=8F=E5=8C=96=E5=8A=A8=E7=94=BB=20(#4762)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/org/jackhuang/hmcl/ui/decorator/Decorator.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/decorator/Decorator.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/decorator/Decorator.java index 154116548..f0d5b1d64 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/decorator/Decorator.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/decorator/Decorator.java @@ -42,6 +42,7 @@ import javafx.util.Duration; import org.jackhuang.hmcl.ui.FXUtils; import org.jackhuang.hmcl.ui.animation.AnimationUtils; import org.jackhuang.hmcl.ui.wizard.Navigation; +import org.jackhuang.hmcl.util.platform.OperatingSystem; public class Decorator extends Control { private final ListProperty drawer = new SimpleListProperty<>(FXCollections.observableArrayList()); @@ -273,7 +274,7 @@ public class Decorator extends Control { } public void minimize() { - if (AnimationUtils.playWindowAnimation()) { + if (AnimationUtils.playWindowAnimation() && OperatingSystem.CURRENT_OS != OperatingSystem.MACOS) { playRestoreMinimizeAnimation = true; Timeline timeline = new Timeline( new KeyFrame(Duration.millis(0),