From ba3d0c4d30cbed52d17b4f1126b35dddc8b34444 Mon Sep 17 00:00:00 2001 From: dankito Date: Tue, 17 Sep 2024 22:51:28 +0200 Subject: [PATCH] Inverted order --- .../net/codinux/banking/ui/screens/ExportScreen.kt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/screens/ExportScreen.kt b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/screens/ExportScreen.kt index 86f7f88..1d4f722 100644 --- a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/screens/ExportScreen.kt +++ b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/screens/ExportScreen.kt @@ -55,13 +55,7 @@ fun ExportScreen(onClosed: () -> Unit) { } } - if (isLoadingExportedData == false) { - Column(Modifier.verticalScroll(ScrollState(0), enabled = true).horizontalScroll(ScrollState(0), enabled = true)) { - SelectionContainer { - Text(exportedDataText, fontFamily = FontFamily.Monospace) - } - } - } else { + if (isLoadingExportedData) { Column(Modifier.fillMaxSize()) { Spacer(Modifier.weight(1f)) @@ -71,6 +65,12 @@ fun ExportScreen(onClosed: () -> Unit) { Spacer(Modifier.weight(1f)) } + } else { + Column(Modifier.verticalScroll(ScrollState(0), enabled = true).horizontalScroll(ScrollState(0), enabled = true)) { + SelectionContainer { + Text(exportedDataText, fontFamily = FontFamily.Monospace) + } + } } } }