made default chunk size to 50
Some checks are pending
Build and Release / Build IPA (push) Waiting to run
Build and Release / Build Mac Catalyst (push) Waiting to run

This commit is contained in:
cranci1 2025-07-07 10:30:14 +02:00
parent f6f9bcaa8f
commit 112770024c
2 changed files with 6 additions and 6 deletions

View file

@ -47,7 +47,7 @@ struct MediaInfoView: View {
@State private var selectedSeason: Int = 0
@State private var selectedRange: Range<Int> = {
let size = UserDefaults.standard.integer(forKey: "episodeChunkSize")
let chunk = size == 0 ? 100 : size
let chunk = size == 0 ? 50 : size
return 0..<chunk
}()
@ -76,7 +76,7 @@ struct MediaInfoView: View {
private var selectedSeasonKey: String { "selectedSeason_\(href)" }
@AppStorage("externalPlayer") private var externalPlayer: String = "Default"
@AppStorage("episodeChunkSize") private var episodeChunkSize: Int = 100
@AppStorage("episodeChunkSize") private var episodeChunkSize: Int = 50
@AppStorage("selectedAppearance") private var selectedAppearance: Appearance = .system
@ObservedObject private var jsController = JSController.shared
@ -164,11 +164,11 @@ struct MediaInfoView: View {
}
@State private var selectedChapterRange: Range<Int> = {
let size = UserDefaults.standard.integer(forKey: "chapterChunkSize")
let chunk = size == 0 ? 100 : size
let size = UserDefaults.standard.integer(forKey: "episodeChunkSize")
let chunk = size == 0 ? 50 : size
return 0..<chunk
}()
@AppStorage("chapterChunkSize") private var chapterChunkSize: Int = 100
@AppStorage("chapterChunkSize") private var chapterChunkSize: Int = 50
private var selectedChapterRangeKey: String { "selectedChapterRangeStart_\(href)" }
var body: some View {

View file

@ -149,7 +149,7 @@ fileprivate struct SettingsPickerRow<T: Hashable>: View {
}
struct SettingsViewGeneral: View {
@AppStorage("episodeChunkSize") private var episodeChunkSize: Int = 100
@AppStorage("episodeChunkSize") private var episodeChunkSize: Int = 50
@AppStorage("refreshModulesOnLaunch") private var refreshModulesOnLaunch: Bool = true
@AppStorage("fetchEpisodeMetadata") private var fetchEpisodeMetadata: Bool = true
@AppStorage("analyticsEnabled") private var analyticsEnabled: Bool = false