File tree Expand file tree Collapse file tree
HMCL/src/main/java/org/jackhuang/hmcl/ui/decorator Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4242import org .jackhuang .hmcl .ui .FXUtils ;
4343import org .jackhuang .hmcl .ui .animation .AnimationUtils ;
4444import org .jackhuang .hmcl .ui .wizard .Navigation ;
45+ import org .jackhuang .hmcl .util .platform .OperatingSystem ;
4546
4647public class Decorator extends Control {
4748 private final ListProperty <Node > drawer = new SimpleListProperty <>(FXCollections .observableArrayList ());
@@ -273,7 +274,7 @@ protected Skin<?> createDefaultSkin() {
273274 }
274275
275276 public void minimize () {
276- if (AnimationUtils .playWindowAnimation ()) {
277+ if (AnimationUtils .playWindowAnimation () && OperatingSystem . CURRENT_OS != OperatingSystem . MACOS ) {
277278 playRestoreMinimizeAnimation = true ;
278279 Timeline timeline = new Timeline (
279280 new KeyFrame (Duration .millis (0 ),
You can’t perform that action at this time.
0 commit comments