regression: fix show nsec button
This commit is contained in:
1 parent
5f0c1a59e6
commit
6910e84fd8
1 file changed
+3
-1
@@ -29,7 +29,8 @@ struct KeySettingsView: View {
|
||||
.onChange(of: show_privkey) { newValue in
|
||||
if newValue {
|
||||
authenticate_locally(has_authenticated_locally) { success in
|
||||
show_privkey = success
|
||||
self.has_authenticated_locally = success
|
||||
self.show_privkey = success
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -58,6 +59,7 @@ struct KeySettingsView: View {
|
||||
}
|
||||
|
||||
authenticate_locally(has_authenticated_locally) { success in
|
||||
self.has_authenticated_locally = success
|
||||
if success {
|
||||
copyKey()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user