Disable translations in DMs by default

There is an option to enable it now.

Changelog-Changed: Disable translations in DMs by default
This commit is contained in:
William Casarin
2023-04-06 12:07:01 -07:00
parent 7fb1bc48c4
commit 24c82293b3
7 changed files with 34 additions and 19 deletions

View File

@@ -69,6 +69,11 @@ struct TranslationSettingsView: View {
Toggle(NSLocalizedString("Automatically translate notes", comment: "Toggle to automatically translate notes."), isOn: $settings.auto_translate)
.toggleStyle(.switch)
}
if settings.translation_service != .none {
Toggle(NSLocalizedString("Translate DMs", comment: "Toggle to translate direct messages."), isOn: $settings.translate_dms)
.toggleStyle(.switch)
}
}
}
.navigationTitle("Translation")