Show the translate-with-DeepL button if necessary (#1248)

Previously, the button was shown if the always use DeepL setting was active.
This is redundant. Instead, the button is now shown, if the setting isn't
active.

Signed-off-by: Paul Schuetz <pa.schuetz@web.de>
This commit is contained in:
Paul Schuetz 2023-03-16 07:09:34 +01:00 committed by GitHub
parent ae51ea0c1c
commit d00b66034d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -138,7 +138,7 @@ struct StatusRowContextMenu: View {
Label("status.action.translate", systemImage: "captions.bubble")
}
if viewModel.alwaysTranslateWithDeepl {
if !viewModel.alwaysTranslateWithDeepl {
Button {
Task {
await viewModel.translateWithDeepL(userLang: lang)