https://github.com/huanghongxun/HMCL/issues/2204#issuecomment-1519823562
This commit is contained in:
@@ -88,7 +88,9 @@ public class TaskExecutorDialogPane extends BorderPane {
|
|||||||
|
|
||||||
btnCancel.setOnAction(e -> {
|
btnCancel.setOnAction(e -> {
|
||||||
Optional.ofNullable(executor).ifPresent(TaskExecutor::cancel);
|
Optional.ofNullable(executor).ifPresent(TaskExecutor::cancel);
|
||||||
onCancel.getCancellationAction().accept(this);
|
if (onCancel.getCancellationAction() != null) {
|
||||||
|
onCancel.getCancellationAction().accept(this);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
speedEventHandler = speedEvent -> {
|
speedEventHandler = speedEvent -> {
|
||||||
|
|||||||
Reference in New Issue
Block a user