commit 3da12e708fea0a6adabc8b8a6d32054bb93443fd
parent 3d97dc593e5e9284ec3db585a6db388f48ba83f9
Author: William Casarin <jb55@jb55.com>
Date: Mon, 3 Apr 2023 17:44:08 -0700
Only show translate button if autotranslate is off
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/damus/Components/TranslateView.swift b/damus/Components/TranslateView.swift
@@ -45,8 +45,10 @@ struct TranslateView: View {
let languageName = Locale.current.localizedString(forLanguageCode: note_lang)
if let languageName, let translated_artifacts, show_translated_note {
Translated(lang: languageName, artifacts: translated_artifacts)
- } else {
+ } else if !damus_state.settings.auto_translate {
TranslateButton
+ } else {
+ EmptyView()
}
}
}