Skip to content

Commit

Permalink
Don't automatically select default counters at empty selection. (#80)
Browse files Browse the repository at this point in the history
- Bug: http://b/150017682.
  • Loading branch information
stellama0208 authored Feb 24, 2020
1 parent b789f41 commit 451aec7
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -810,8 +810,7 @@ protected Control createDialogArea(Composite parent) {
table.setInput(caps.getGpuProfiling().getGpuCounterDescriptor().getSpecsList());
table.setCheckedElements(
caps.getGpuProfiling().getGpuCounterDescriptor().getSpecsList().stream()
.filter(currentIds.isEmpty() ?
SELECT_DEFAULT : c -> currentIds.contains(c.getCounterId()))
.filter(c -> currentIds.contains(c.getCounterId()))
.toArray(GpuProfiling.GpuCounterDescriptor.GpuCounterSpec[]::new));
table.getTable().getColumn(0).pack();
table.getTable().getColumn(1).pack();
Expand Down

0 comments on commit 451aec7

Please sign in to comment.