Skip to content

Commit

Permalink
only show backup keys if account has a private key
Browse files Browse the repository at this point in the history
  • Loading branch information
greenart7c3 committed Sep 23, 2023
1 parent 35c67f6 commit b3f3943
Showing 1 changed file with 12 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -508,17 +508,19 @@ fun ListContent(
route = Route.BlockedUsers.route
)

IconRow(
title = stringResource(R.string.backup_keys),
icon = R.drawable.ic_key,
tint = MaterialTheme.colors.onBackground,
onClick = {
coroutineScope.launch {
scaffoldState.drawerState.close()
accountViewModel.account.keyPair.privKey?.let {
IconRow(
title = stringResource(R.string.backup_keys),
icon = R.drawable.ic_key,
tint = MaterialTheme.colors.onBackground,
onClick = {
coroutineScope.launch {
scaffoldState.drawerState.close()
}
backupDialogOpen = true
}
backupDialogOpen = true
}
)
)
}

val textTorProxy = if (checked) stringResource(R.string.disconnect_from_your_orbot_setup) else stringResource(R.string.connect_via_tor_short)
IconRow(
Expand Down

0 comments on commit b3f3943

Please sign in to comment.