ui: add 10 minutes SimpleX Lock delay (#3255)

This commit is contained in:
Evgeny Poberezkin 2023-10-22 14:56:51 +01:00 committed by GitHub
parent 8891314507
commit b25c2e3a09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -356,7 +356,7 @@ struct SimplexLockView: View {
var id: Self { self }
}
let laDelays: [Int] = [10, 30, 60, 180, 0]
let laDelays: [Int] = [10, 30, 60, 180, 600, 0]
func laDelayText(_ t: Int) -> LocalizedStringKey {
let m = t / 60
@ -378,6 +378,7 @@ struct SimplexLockView: View {
Text(mode.text)
}
}
.frame(height: 36)
if performLA {
Picker("Lock after", selection: $laLockDelay) {
let delays = laDelays.contains(laLockDelay) ? laDelays : [laLockDelay] + laDelays
@ -385,6 +386,7 @@ struct SimplexLockView: View {
Text(laDelayText(t))
}
}
.frame(height: 36)
if showChangePassword && laMode == .passcode {
Button("Change passcode") {
changeLAPassword()

View File

@ -317,7 +317,7 @@ private fun showUserGroupsReceiptsAlert(
)
}
private val laDelays = listOf(10, 30, 60, 180, 0)
private val laDelays = listOf(10, 30, 60, 180, 600, 0)
@Composable
fun SimplexLockView(