Skip to content
This repository has been archived by the owner on Sep 15, 2023. It is now read-only.

Commit

Permalink
feat: expanding a large tree in a diff now works a lot faster
Browse files Browse the repository at this point in the history
  • Loading branch information
L1nc0ln committed Aug 22, 2023
1 parent 1b02e74 commit 9534b82
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gui/src/main/java/de/adito/git/gui/tree/StatusTree.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ public StatusTree(@NonNull IQuickSearchProvider pQuickSearchProvider, @NonNull I
pScrollPane.setViewportView(searchableTree);
observableTreeSelectionModel = new ObservableTreeSelectionModel(searchableTree.getSelectionModel());
searchableTree.setSelectionModel(observableTreeSelectionModel);
// use large tree model, this speeds up the expansion of the tree in case there are lots of elements in the tree.
searchableTree.setLargeModel(true);
}

/**
Expand Down

0 comments on commit 9534b82

Please sign in to comment.