Skip to content

Commit

Permalink
Do not autopopulate metadata (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
SamCarlberg authored and bradamiller committed Oct 12, 2017
1 parent 35d2823 commit 3e7b2af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import edu.wpi.first.shuffleboard.api.sources.DataSource;
import edu.wpi.first.shuffleboard.api.util.Debouncer;
import edu.wpi.first.shuffleboard.api.util.FxUtils;
import edu.wpi.first.shuffleboard.api.util.NetworkTableUtils;
import edu.wpi.first.shuffleboard.api.util.TypeUtils;
import edu.wpi.first.shuffleboard.api.widget.Component;
import edu.wpi.first.shuffleboard.api.widget.ComponentContainer;
Expand Down Expand Up @@ -307,6 +308,7 @@ public boolean supports(DataSource<?> source) {
return !deferPopulation
&& isAutoPopulate()
&& source.getDataType() != DataTypes.Map
&& !NetworkTableUtils.isMetadata(source.getId())
&& (source.getName().startsWith(getSourcePrefix()) || source.getId().startsWith(getSourcePrefix()));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ public String getName() {
public boolean supports(DataSource<?> source) {
return this.source != null
&& this.source != source
&& source.getName().startsWith(getSource().getName());
&& source.getName().startsWith(this.source.getName())
&& !NetworkTableUtils.isMetadata(source.getId());
}

@Override
Expand Down

0 comments on commit 3e7b2af

Please sign in to comment.