Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
derreisende77 committed Feb 6, 2025
1 parent 6fbd97e commit 8546c21
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,8 @@ public void updateItem(String item, boolean empty) {

// create filtered and sortable list
filteredBookmarkList = new FilteredList<>(listeBookmarkList.getObervableList(), p -> true);
SortedList<BookmarkData> slisteBookmarkList = new SortedList<>(filteredBookmarkList);
slisteBookmarkList.comparatorProperty().bind(tbBookmarks.comparatorProperty());
SortedList<BookmarkData> sortedBookmarkList = new SortedList<>(filteredBookmarkList);
sortedBookmarkList.comparatorProperty().bind(tbBookmarks.comparatorProperty());

listeBookmarkList.getObervableList().addListener((ListChangeListener.Change<? extends BookmarkData> c) -> {
while (c.next()) {
Expand All @@ -330,7 +330,7 @@ public void updateItem(String item, boolean empty) {
JavaFxUtils.invokeInFxThreadAndWait(this::updateDisplay);
});

tbBookmarks.setItems(slisteBookmarkList);
tbBookmarks.setItems(sortedBookmarkList);
tbBookmarks.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);

// Add listener to set button and context item state depending on selection
Expand Down

0 comments on commit 8546c21

Please sign in to comment.