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),