misc changes
This commit is contained in:
parent
81af114e99
commit
94b3349eeb
|
|
@ -67,7 +67,9 @@ class ProfileDetails(val profile: Profile): Screen {
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun generalAttributes() {
|
fun generalAttributes() {
|
||||||
Column {
|
Column(
|
||||||
|
modifier = Modifier.padding(10.dp)
|
||||||
|
) {
|
||||||
textAttribute(
|
textAttribute(
|
||||||
title = "Name",
|
title = "Name",
|
||||||
tooltip = "This is the name of the profile. It also acts as the name of the saved file.",
|
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(
|
Button(
|
||||||
onClick = {
|
onClick = { //TODO: does not update text field
|
||||||
CoroutineScope(Dispatchers.IO + SupervisorJob()).async {
|
CoroutineScope(Dispatchers.IO + SupervisorJob()).async {
|
||||||
fieldValue = FileKit.pickFile(
|
fieldValue = FileKit.pickFile(
|
||||||
title = "Pick program path",
|
title = "Pick program path",
|
||||||
|
|
@ -177,8 +179,6 @@ class ProfileDetails(val profile: Profile): Screen {
|
||||||
.background(MaterialTheme.colors.primary, CircleShape)
|
.background(MaterialTheme.colors.primary, CircleShape)
|
||||||
) {
|
) {
|
||||||
Text(
|
Text(
|
||||||
modifier = Modifier
|
|
||||||
.padding(10.dp),
|
|
||||||
text = tooltip,
|
text = tooltip,
|
||||||
color = MaterialTheme.colors.onPrimary
|
color = MaterialTheme.colors.onPrimary
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue