commit 6910e84fd8000e65a4a348dfa8a085e630d80e8d parent 5f0c1a59e6418e9c1ef5861a34cad5048d849eba Author: William Casarin <jb55@jb55.com> Date: Wed, 5 Apr 2023 11:26:27 -0700 regression: fix show nsec button Diffstat:
M | damus/Views/Settings/KeySettingsView.swift | | | 4 | +++- |
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/damus/Views/Settings/KeySettingsView.swift b/damus/Views/Settings/KeySettingsView.swift @@ -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() }