mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-01-24 14:34:15 +08:00
https://github.com/huanghongxun/HMCL/issues/2204#issuecomment-1519823562
This commit is contained in:
parent
9d54ddf456
commit
605d0c6a92
@ -88,7 +88,9 @@ public class TaskExecutorDialogPane extends BorderPane {
|
||||
|
||||
btnCancel.setOnAction(e -> {
|
||||
Optional.ofNullable(executor).ifPresent(TaskExecutor::cancel);
|
||||
onCancel.getCancellationAction().accept(this);
|
||||
if (onCancel.getCancellationAction() != null) {
|
||||
onCancel.getCancellationAction().accept(this);
|
||||
}
|
||||
});
|
||||
|
||||
speedEventHandler = speedEvent -> {
|
||||
|
Loading…
Reference in New Issue
Block a user