mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-04-27 02:14:45 +00:00
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:
parent
ae51ea0c1c
commit
d00b66034d
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ struct StatusRowContextMenu: View {
|
||||||
Label("status.action.translate", systemImage: "captions.bubble")
|
Label("status.action.translate", systemImage: "captions.bubble")
|
||||||
}
|
}
|
||||||
|
|
||||||
if viewModel.alwaysTranslateWithDeepl {
|
if !viewModel.alwaysTranslateWithDeepl {
|
||||||
Button {
|
Button {
|
||||||
Task {
|
Task {
|
||||||
await viewModel.translateWithDeepL(userLang: lang)
|
await viewModel.translateWithDeepL(userLang: lang)
|
||||||
|
|
Loading…
Reference in a new issue