mirror of
https://github.com/cranci1/Sora.git
synced 2026-01-11 20:10:24 +00:00
made default chunk size to 50
This commit is contained in:
parent
f6f9bcaa8f
commit
112770024c
2 changed files with 6 additions and 6 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue