From 37406acd98ace9b44ff8c22de897196b56b0e916 Mon Sep 17 00:00:00 2001 From: CodeSteak Date: Thu, 13 Jun 2019 18:04:46 +0200 Subject: [PATCH] Fix #27 (StartupViewController is created twice) again --- client/src/main/kotlin/org/hso/texturesyncclient/app/Main.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/main/kotlin/org/hso/texturesyncclient/app/Main.kt b/client/src/main/kotlin/org/hso/texturesyncclient/app/Main.kt index 0c4a162..967f3fd 100644 --- a/client/src/main/kotlin/org/hso/texturesyncclient/app/Main.kt +++ b/client/src/main/kotlin/org/hso/texturesyncclient/app/Main.kt @@ -9,7 +9,7 @@ import tornadofx.App class Main : App(StartupView::class) { - val svc = StartupViewController() + private val svc: StartupViewController by inject() override fun start(stage: Stage) {