damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 0af8646fd52cbf6646557e8049ee380915f72c99
parent 393745f67c43f57f7b75cfb205ea8fc270af2863
Author: Terry Yiu <963907+tyiu@users.noreply.github.com>
Date:   Tue, 27 Dec 2022 08:27:38 -0400

Swap order of Logout and Cancel alert buttons

To conform to Apple's Human Interface Guidelines

Closes: #159
Changelog-Fixed: Swapped order of Logout and Cancel alert buttons

Diffstat:
Mdamus/Views/ConfigView.swift | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/damus/Views/ConfigView.swift b/damus/Views/ConfigView.swift @@ -102,12 +102,12 @@ struct ConfigView: View { .navigationTitle("Settings") .navigationBarTitleDisplayMode(.large) .alert("Logout", isPresented: $confirm_logout) { - Button("Logout") { - notify(.logout, ()) - } Button("Cancel") { confirm_logout = false } + Button("Logout") { + notify(.logout, ()) + } } message: { Text("Make sure your nsec account key is saved before you logout or you will lose access to this account") }