Fix #4934: 返回页面时可能卡进空白页面 (#5305)

This commit is contained in:
辞庐 authored and GitHub committed 2026-01-24 21:41:04 +08:00
1 parent 7f6379960b
commit e68b96f67d
1 file changed
+3 -1
@@ -82,7 +82,9 @@ public class TransitionPane extends StackPane {
duration, interpolator);
newAnimation.setOnFinished(e -> {
setMouseTransparent(false);
getChildren().remove(previousNode);
if (previousNode != currentNode) {
getChildren().remove(previousNode);
}
if (cacheHint != null) {
newView.setCache(false);