Skip to content

Commit

Permalink
fix: SAM MIDI device accept prediction
Browse files Browse the repository at this point in the history
reset prompt was happening too quickkly, no put it off by doing it on.
  • Loading branch information
cmhulbert committed May 24, 2024
1 parent af539d0 commit ccdb497
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,9 @@ open class SamTool(activeSourceStateProperty: SimpleObjectProperty<SourceState<*
verifyEventNotNull()
onAction {
applyPredictionAction(null)
resetPromptAction(null)
Platform.runLater {
resetPromptAction(null)
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ internal class ShapeInterpolationTool(
}
}

autoSamBisectAll = KEY_PRESSED(SHAPE_INTERPOLATION__AUTO_SAM__NEW_SLICES_BISECT) {
autoSamBisectCurrent = KEY_PRESSED(SHAPE_INTERPOLATION__AUTO_SAM__NEW_SLICES_BISECT) {
onAction {
val depths = sortedSliceDepths.toMutableList()
val (left, right) = depths.zipWithNext().firstOrNull { (left, right) ->
Expand Down

0 comments on commit ccdb497

Please sign in to comment.