Signed-off-by: Matt Bruce <mbrucedogs@gmail.com>
This commit is contained in:
parent
12715cb646
commit
71fce2bb2d
@ -277,10 +277,7 @@ struct SettingsView: View {
|
||||
.padding(.top, Design.Spacing.large)
|
||||
.padding(.bottom, Design.Spacing.medium)
|
||||
},
|
||||
onCancel: {
|
||||
settings.load() // Revert changes
|
||||
dismiss()
|
||||
},
|
||||
onCancel: nil,
|
||||
onDone: {
|
||||
settings.save()
|
||||
if hasChanges {
|
||||
@ -288,8 +285,7 @@ struct SettingsView: View {
|
||||
}
|
||||
dismiss()
|
||||
},
|
||||
doneButtonText: String(localized: "Done"),
|
||||
cancelButtonText: String(localized: "Cancel")
|
||||
doneButtonText: String(localized: "Done")
|
||||
)
|
||||
.alert(String(localized: "Clear All Data?"), isPresented: $showClearDataAlert) {
|
||||
Button(String(localized: "Cancel"), role: .cancel) { }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user