summaryrefslogtreecommitdiff
path: root/Sora/Views/Settings/Section/SettingsDetailsView.swift
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-03-02 07:59:54 -0800
committerFuwn <[email protected]>2025-03-02 07:59:54 -0800
commit08d9b4f6f8c5c903203877bd940311cde052bd21 (patch)
tree0041fa05ac131937ed7901558f187c845430d4f9 /Sora/Views/Settings/Section/SettingsDetailsView.swift
parentfeat: Development commit (diff)
downloadsora-testing-08d9b4f6f8c5c903203877bd940311cde052bd21.tar.xz
sora-testing-08d9b4f6f8c5c903203877bd940311cde052bd21.zip
feat: Development commit
Diffstat (limited to 'Sora/Views/Settings/Section/SettingsDetailsView.swift')
-rw-r--r--Sora/Views/Settings/Section/SettingsDetailsView.swift6
1 files changed, 4 insertions, 2 deletions
diff --git a/Sora/Views/Settings/Section/SettingsDetailsView.swift b/Sora/Views/Settings/Section/SettingsDetailsView.swift
index 885ef6f..3866994 100644
--- a/Sora/Views/Settings/Section/SettingsDetailsView.swift
+++ b/Sora/Views/Settings/Section/SettingsDetailsView.swift
@@ -22,15 +22,17 @@ struct SettingsDetailsView: View {
}
#endif
+ let preloadRange = 0...10
+
#if os(macOS)
Picker("Preloaded Images", selection: $settings.preloadedCarouselImages) {
- ForEach(1...10, id: \.self) { columns in Text("\(columns)") }
+ ForEach(preloadRange, id: \.self) { columns in Text("\(columns)") }
}
#else
Stepper(
"Preloaded Images: \(settings.preloadedCarouselImages)",
value: $settings.preloadedCarouselImages,
- in: 1...10
+ in: preloadRange
)
#endif
}