Skip to content

Commit

Permalink
Fix restoring the default preference setting
Browse files Browse the repository at this point in the history
  • Loading branch information
laksono committed Oct 14, 2021
1 parent 32a5ee4 commit 2077537
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,5 +119,6 @@ public IPreferenceStore getPreferenceStore() {

@Override
protected void performDefaults() {
setDebugMode(false);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -165,14 +165,10 @@ public IPreferenceStore getPreferenceStore() {

@Override
protected void performDefaults() {

colorPolicies[TracePreferenceConstants.COLOR_NAME_BASED].setSelection(true);
colorPolicies[TracePreferenceConstants.COLOR_RANDOM].setSelection(false);

// by default the first label is selected
/*
btnRenders[0].setSelection(true);
for(int i=1; i<btnRenders.length; i++) {
btnRenders[i].setSelection(false);
}
*/
int maxThreads = Math.min(ThreadManager.getNumThreads(0), TracePreferenceConstants.DEFAULT_MAX_THREADS);
spMaxThreads.setSelection(maxThreads);

Expand Down

0 comments on commit 2077537

Please sign in to comment.