From fff391702dfd53b656bd25b018ce910d2da894c1 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Wed, 20 Apr 2022 08:49:19 +0200 Subject: [PATCH] Use 'Save' in profile renaming Drop 'Done' label (unused). --- Passepartout/App/Constants/Theme.swift | 8 ++++---- Passepartout/App/Views/ProfileView+Rename.swift | 4 +--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/Passepartout/App/Constants/Theme.swift b/Passepartout/App/Constants/Theme.swift index 76dadf78..5903fe47 100644 --- a/Passepartout/App/Constants/Theme.swift +++ b/Passepartout/App/Constants/Theme.swift @@ -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(_ title: String, selection: Binding, values: [T], description: @escaping (T) -> String) -> some View { StyledPicker(title: title, selection: selection, values: values) { diff --git a/Passepartout/App/Views/ProfileView+Rename.swift b/Passepartout/App/Views/ProfileView+Rename.swift index ae0fa0b9..cae3139c 100644 --- a/Passepartout/App/Views/ProfileView+Rename.swift +++ b/Passepartout/App/Views/ProfileView+Rename.swift @@ -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) }