From 94b3349eeb3715b6df97dcf9a9877f102227019b Mon Sep 17 00:00:00 2001 From: r0r-5chach Date: Mon, 17 Mar 2025 21:38:36 +0000 Subject: [PATCH] misc changes --- src/main/kotlin/ui/screens/ProfileDetails.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/kotlin/ui/screens/ProfileDetails.kt b/src/main/kotlin/ui/screens/ProfileDetails.kt index ac41286..9c1d8f9 100644 --- a/src/main/kotlin/ui/screens/ProfileDetails.kt +++ b/src/main/kotlin/ui/screens/ProfileDetails.kt @@ -67,7 +67,9 @@ class ProfileDetails(val profile: Profile): Screen { @Composable fun generalAttributes() { - Column { + Column( + modifier = Modifier.padding(10.dp) + ) { textAttribute( title = "Name", tooltip = "This is the name of the profile. It also acts as the name of the saved file.", @@ -130,7 +132,7 @@ class ProfileDetails(val profile: Profile): Screen { ) Button( - onClick = { + onClick = { //TODO: does not update text field CoroutineScope(Dispatchers.IO + SupervisorJob()).async { fieldValue = FileKit.pickFile( title = "Pick program path", @@ -177,8 +179,6 @@ class ProfileDetails(val profile: Profile): Screen { .background(MaterialTheme.colors.primary, CircleShape) ) { Text( - modifier = Modifier - .padding(10.dp), text = tooltip, color = MaterialTheme.colors.onPrimary )