From d00b66034dd74a2d4481e2a25234d11fa4ded93c Mon Sep 17 00:00:00 2001 From: Paul Schuetz Date: Thu, 16 Mar 2023 07:09:34 +0100 Subject: [PATCH] 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 --- .../Sources/Status/Row/Subviews/StatusRowContextMenu.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Packages/Status/Sources/Status/Row/Subviews/StatusRowContextMenu.swift b/Packages/Status/Sources/Status/Row/Subviews/StatusRowContextMenu.swift index 8906fe4e..411f2d3d 100644 --- a/Packages/Status/Sources/Status/Row/Subviews/StatusRowContextMenu.swift +++ b/Packages/Status/Sources/Status/Row/Subviews/StatusRowContextMenu.swift @@ -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)