From f66f3442c1067cce4fb0d217a7be4db94ec4b27b Mon Sep 17 00:00:00 2001 From: Ravi van Rooijen Date: Sun, 8 Dec 2019 23:41:58 +0100 Subject: [PATCH] Remove non-nullable bound from runAsyncWithProgress --- src/main/java/tornadofx/Async.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/tornadofx/Async.kt b/src/main/java/tornadofx/Async.kt index 0ec8970d5..f55b9a16e 100644 --- a/src/main/java/tornadofx/Async.kt +++ b/src/main/java/tornadofx/Async.kt @@ -238,7 +238,7 @@ fun Node.runAsyncWithProgress(latch: CountDownLatch, timeout: Duration? = null, * The default progress node is a ProgressIndicator that fills the same * client area as the parent. You can swap the progress node for any Node you like. */ -fun Node.runAsyncWithProgress(progress: Node = ProgressIndicator(), op: () -> T): Task { +fun Node.runAsyncWithProgress(progress: Node = ProgressIndicator(), op: () -> T): Task { if (this is Labeled) { val oldGraphic = graphic (progress as? Region)?.setPrefSize(16.0, 16.0)