mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-09 20:06:39 -04:00
Fix IllegalStateException in DownloadWizardProvider
This commit is contained in:
parent
0dd2e758e8
commit
3fb5048f10
@ -80,7 +80,10 @@ public final class TransitionHandler implements AnimationHandler {
|
|||||||
|
|
||||||
Timeline nowAnimation = new Timeline();
|
Timeline nowAnimation = new Timeline();
|
||||||
nowAnimation.getKeyFrames().addAll(transition.animate(this));
|
nowAnimation.getKeyFrames().addAll(transition.animate(this));
|
||||||
nowAnimation.getKeyFrames().add(new KeyFrame(duration, e -> view.getChildren().remove(previousNode)));
|
nowAnimation.getKeyFrames().add(new KeyFrame(duration, e -> {
|
||||||
|
previousNode.setMouseTransparent((Boolean) previousNode.getProperties().get(MOUSE_TRANSPARENT));
|
||||||
|
view.getChildren().remove(previousNode);
|
||||||
|
}));
|
||||||
nowAnimation.play();
|
nowAnimation.play();
|
||||||
animation = nowAnimation;
|
animation = nowAnimation;
|
||||||
}
|
}
|
||||||
@ -96,10 +99,14 @@ public final class TransitionHandler implements AnimationHandler {
|
|||||||
if (previousNode == newView)
|
if (previousNode == newView)
|
||||||
previousNode = NULL;
|
previousNode = NULL;
|
||||||
|
|
||||||
|
previousNode.getProperties().put(MOUSE_TRANSPARENT, previousNode.isMouseTransparent());
|
||||||
|
previousNode.setMouseTransparent(true);
|
||||||
|
|
||||||
currentNode = newView;
|
currentNode = newView;
|
||||||
|
|
||||||
view.getChildren().setAll(previousNode, currentNode);
|
view.getChildren().setAll(previousNode, currentNode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static final String MOUSE_TRANSPARENT = "TransitionHandler.MOUSE_TRANSPARENT";
|
||||||
private static final StackPane NULL = new StackPane();
|
private static final StackPane NULL = new StackPane();
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,7 @@ HMCL is a Minecraft launcher which supports Mod management, game customizing, au
|
|||||||
## Downloads
|
## Downloads
|
||||||
|
|
||||||
Binary version can be found here: https://ci.huangyuhui.net/job/HMCL
|
Binary version can be found here: https://ci.huangyuhui.net/job/HMCL
|
||||||
|
|
||||||
Archives in GitHub releases are built by closed CIs, uploaded here for backup.
|
Archives in GitHub releases are built by closed CIs, uploaded here for backup.
|
||||||
|
|
||||||
## Contribution
|
## Contribution
|
||||||
|
Loading…
x
Reference in New Issue
Block a user