Skip to content

Commit

Permalink
Sets SendableChooser widget type (#36)
Browse files Browse the repository at this point in the history
Co-authored-by: "Benjamin Ly" <[email protected]>
  • Loading branch information
NRG948DriverStation and shopyt0 authored Jan 10, 2025
1 parent f1b7656 commit 0a78f77
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -537,8 +537,9 @@ public <E extends Enum<E>> void visit(EnumValue<E> value) {
.forEach(e -> chooser.addOption(e.toString(), e));
chooser.setDefaultOption(currentValue.toString(), currentValue);

ComplexWidget widget = layout.add(value.getName(), chooser);

ComplexWidget widget =
layout.add(value.getName(), chooser).withWidget(BuiltInWidgets.kComboBoxChooser);

configureWidget(widget);

NetworkTableInstance ntInstance = NetworkTableInstance.getDefault();
Expand Down

0 comments on commit 0a78f77

Please sign in to comment.