Skip to content

Commit cc0cbb8

Browse files
committed
No longer switches the order of sockets.
1 parent a46cd55 commit cc0cbb8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ui/src/main/java/edu/wpi/grip/ui/pipeline/StepController.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,16 +170,16 @@ private void expand() {
170170
if (expanded) {
171171
for (InputSocketController input : inputSockets) {
172172
if (input.getSocket().getConnections().isEmpty()) {
173-
inputSocketMapManager.remove(input);
173+
input.getRoot().setVisible(false);
174+
input.getRoot().setManaged(false);
174175
}
175176
}
176177
expandIcon.setImage(new Image("/edu/wpi/grip/ui/icons/down.png"));
177178
expanded = false;
178179
} else {
179180
for (InputSocketController input : inputSockets) {
180-
if (!inputSocketMapManager.containsKey(input)) {
181-
inputSocketMapManager.add(input);
182-
}
181+
input.getRoot().setManaged(true);
182+
input.getRoot().setVisible(true);
183183
}
184184
expandIcon.setImage(new Image("/edu/wpi/grip/ui/icons/up.png"));
185185
expanded = true;

0 commit comments

Comments
 (0)