Skip to content

Commit 0b2cf0b

Browse files
committed
when using the filtering fuction, all projects were selectable. only currently available should be
1 parent 4367658 commit 0b2cf0b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/de/doubleslash/keeptime/view/ManageWorkController.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,9 @@ public void changed(final ObservableValue<? extends String> observable, final St
215215
// needed to avoid exception on empty textfield https://bugs.openjdk.java.net/browse/JDK-8081700
216216
Platform.runLater(() -> {
217217
projectComboBox.hide();
218-
projectComboBox.setItems(model.getAllProjects().filtered(project -> ProjectsListViewController
219-
.doesProjectMatchSearchFilter(projectComboBox.getEditor().getText(), project)));
218+
projectComboBox
219+
.setItems(model.getSortedAvailableProjects().filtered(project -> ProjectsListViewController
220+
.doesProjectMatchSearchFilter(projectComboBox.getEditor().getText(), project)));
220221
if (projectComboBox.getEditor().focusedProperty().get()) {
221222
projectComboBox.show();
222223
}

0 commit comments

Comments
 (0)