fixed getAllWidgets

This commit is contained in:
ramollia
2025-12-04 21:26:03 +01:00
parent 8849515af6
commit c8e2c3747e
2 changed files with 7 additions and 1 deletions

View File

@@ -87,6 +87,12 @@ public final class WidgetContainer {
} }
} }
for (var child : currentView.getNode().getChildren()) {
if (child instanceof Widget widget) {
children.add(widget);
}
}
return children; return children;
} }
} }

View File

@@ -41,7 +41,7 @@ public abstract class StackWidget implements Widget {
} }
@Override @Override
public Node getNode() { public StackPane getNode() {
return container; return container;
} }
} }