Use 'Save' in profile renaming
Drop 'Done' label (unused).
This commit is contained in:
parent
dbc007b184
commit
fff391702d
|
@ -304,10 +304,10 @@ extension View {
|
|||
Text(L10n.Global.Strings.save)
|
||||
}
|
||||
|
||||
func themeDoneButtonLabel() -> some View {
|
||||
// themeCheckmarkImage.asSystemImage
|
||||
Text(L10n.Global.Strings.ok)
|
||||
}
|
||||
// func themeDoneButtonLabel() -> some View {
|
||||
//// themeCheckmarkImage.asSystemImage
|
||||
// Text(L10n.Global.Strings.ok)
|
||||
// }
|
||||
|
||||
func themeTextPicker<T: Hashable>(_ title: String, selection: Binding<T>, values: [T], description: @escaping (T) -> String) -> some View {
|
||||
StyledPicker(title: title, selection: selection, values: values) {
|
||||
|
|
|
@ -57,9 +57,7 @@ extension ProfileView {
|
|||
.toolbar {
|
||||
themeCloseItem(presentationMode: presentationMode)
|
||||
ToolbarItem(placement: .primaryAction) {
|
||||
Button(action: commitRenaming) {
|
||||
themeDoneButtonLabel()
|
||||
}
|
||||
Button(action: commitRenaming, label: themeSaveButtonLabel)
|
||||
}
|
||||
}.alert(isPresented: $isOverwritingExistingProfile, content: alertOverwriteExistingProfile)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue