Skip to content

Commit

Permalink
Check if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
alanocallaghan committed Feb 8, 2024
1 parent d02c157 commit d15d8a5
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ public Path fromString(String string) {

private void addListeners() {
tfModelDirectory.textProperty().bindBidirectional(InstanSegPreferences.modelDirectoryProperty());
tryToPopulateChoiceBox(tfModelDirectory.getText());
if (!tfModelDirectory.getText().isEmpty()) {
tryToPopulateChoiceBox(tfModelDirectory.getText());
}
tfModelDirectory.textProperty().addListener((v, o, n) -> tryToPopulateChoiceBox(n));
runButton.disableProperty().bind(
qupath.imageDataProperty().isNull()
Expand Down

0 comments on commit d15d8a5

Please sign in to comment.