From 3943c301e7f1e1c42fff1dd37d2f1b843c16a0b6 Mon Sep 17 00:00:00 2001 From: dankito Date: Mon, 16 Nov 2020 20:33:54 +0100 Subject: [PATCH] Fixed saving 'settings.json' in application startup directory --- .../net/codinux/banking/epcqrcode/windows/main/MainWindow.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EpcQrCodeJavaFxApp/src/main/kotlin/net/codinux/banking/epcqrcode/windows/main/MainWindow.kt b/EpcQrCodeJavaFxApp/src/main/kotlin/net/codinux/banking/epcqrcode/windows/main/MainWindow.kt index 100b07d..897a91a 100644 --- a/EpcQrCodeJavaFxApp/src/main/kotlin/net/codinux/banking/epcqrcode/windows/main/MainWindow.kt +++ b/EpcQrCodeJavaFxApp/src/main/kotlin/net/codinux/banking/epcqrcode/windows/main/MainWindow.kt @@ -28,7 +28,7 @@ class MainWindow : View(FX.messages["application.title"]) { private val DecimalFormat = DecimalFormat( "#.00" ) - private val AppSettingsFile = File("settings.json") + private val AppSettingsFile = File(File("").absoluteFile, "settings.json") private val logger = LoggerFactory.getLogger(MainWindow::class.java) }