Skip to content

Commit

Permalink
Rename isCreateDropdownMenuExpanded to isCreateFileTypeAlertDialogShown
Browse files Browse the repository at this point in the history
  • Loading branch information
soupslurpr authored Jun 9, 2023
1 parent 0fe3141 commit 96b0565
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/src/main/kotlin/dev/soupslurpr/beautyxt/ui/StartupScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ fun StartupScreen(
onOpenAnyButtonClicked: () -> Unit,
) {
var isOpenFileTypeAlertDialogShown by remember { mutableStateOf(false) }
var isCreateDropdownMenuExpanded by remember { mutableStateOf(false) }
var isCreateFileTypeAlertDialogShown by remember { mutableStateOf(false) }
Column(
modifier = modifier
.padding(16.dp)
Expand Down Expand Up @@ -116,7 +116,7 @@ fun StartupScreen(
}
FilledTonalButton(
modifier = modifier.fillMaxWidth(),
onClick = { isCreateDropdownMenuExpanded = true }
onClick = { isCreateFileTypeAlertDialogShown = true }
) {
Icon(
imageVector = Icons.Filled.Add,
Expand All @@ -125,16 +125,16 @@ fun StartupScreen(
Spacer(modifier = modifier.width(8.dp))
Text(stringResource(R.string.create_new_file))
FileTypeSelectionDialog(
isShown = isCreateDropdownMenuExpanded,
onDismissRequest = { isCreateDropdownMenuExpanded = false },
isShown = isCreateFileTypeAlertDialogShown,
onDismissRequest = { isCreateFileTypeAlertDialogShown = false },
) {
Text(
text = stringResource(R.string.pick_a_file_type_to_create)
)
FilledTonalButton(
modifier = Modifier.fillMaxWidth(),
onClick = {
isCreateDropdownMenuExpanded = false
isCreateFileTypeAlertDialogShown = false
onCreateTxtButtonClicked()
},
) {
Expand Down Expand Up @@ -196,4 +196,4 @@ fun StartupPreview() {
onCreateTxtButtonClicked = {},
onSettingsButtonClicked = {},
)
}
}

0 comments on commit 96b0565

Please sign in to comment.