Skip to content

Commit

Permalink
closes #970
Browse files Browse the repository at this point in the history
long press shows dialog to delete repeated values for current plot/trait
  • Loading branch information
chaneylc committed Dec 5, 2024
1 parent acf73a1 commit 1b4c7de
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,18 @@ private void initToolbars() {
triggerTts(deleteTts);
});

deleteValue.setOnLongClickListener(v -> {

ObservationModel[] models = database.getRepeatedValues(getStudyId(), getObservationUnit(), getTraitDbId());

if (models.length > 0) {

showConfirmMultiMeasureDeleteDialog(List.of(models));

}

return true;
});
}

/**
Expand Down

0 comments on commit 1b4c7de

Please sign in to comment.