Skip to content

Commit

Permalink
Don't select missing cores
Browse files Browse the repository at this point in the history
  • Loading branch information
alanocallaghan committed Nov 6, 2024
1 parent 1cacc16 commit 13fbb2f
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,12 @@ private void selectAllAnnotations() {
@FXML
private void selectAllTMACores() {
var hierarchy = qupath.getImageData().getHierarchy();
hierarchy.getSelectionModel().setSelectedObjects(hierarchy.getTMAGrid().getTMACoreList(), null);
hierarchy.getSelectionModel().setSelectedObjects(
hierarchy
.getTMAGrid().getTMACoreList()
.stream().filter(core -> !core.isMissing())
.toList(),
null);
}

private void promptToUpdateDirectory(StringProperty dirPath) {
Expand Down

0 comments on commit 13fbb2f

Please sign in to comment.