summaryrefslogtreecommitdiff
path: root/Sora/Views/Settings/Section/SettingsSectionProviderView.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Sora/Views/Settings/Section/SettingsSectionProviderView.swift')
-rw-r--r--Sora/Views/Settings/Section/SettingsSectionProviderView.swift13
1 files changed, 13 insertions, 0 deletions
diff --git a/Sora/Views/Settings/Section/SettingsSectionProviderView.swift b/Sora/Views/Settings/Section/SettingsSectionProviderView.swift
index cbfae37..031840a 100644
--- a/Sora/Views/Settings/Section/SettingsSectionProviderView.swift
+++ b/Sora/Views/Settings/Section/SettingsSectionProviderView.swift
@@ -26,6 +26,19 @@ struct SettingsSectionProviderView: View {
Toggle("Show Held Posts", isOn: $settings.showHeldMoebooruPosts)
}
+ Section(header: Text("User-Agent")) {
+ Toggle("Send User-Agent", isOn: $settings.sendBooruUserAgent)
+
+ if settings.sendBooruUserAgent {
+ TextField("Custom User-Agent", text: $settings.customBooruUserAgent)
+ .autocorrectionDisabled(true)
+
+ Text("Leave this field empty to use Sora's default User-Agent.")
+ .font(.caption)
+ .foregroundStyle(.secondary)
+ }
+ }
+
Section(header: Text("API Credentials")) {
SecureField(
"API Key",