mirror of
https://github.com/cranci1/Sora.git
synced 2026-03-11 17:45:37 +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 selectedSeason: Int = 0
|
||||||
@State private var selectedRange: Range<Int> = {
|
@State private var selectedRange: Range<Int> = {
|
||||||
let size = UserDefaults.standard.integer(forKey: "episodeChunkSize")
|
let size = UserDefaults.standard.integer(forKey: "episodeChunkSize")
|
||||||
let chunk = size == 0 ? 100 : size
|
let chunk = size == 0 ? 50 : size
|
||||||
return 0..<chunk
|
return 0..<chunk
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|
@ -76,7 +76,7 @@ struct MediaInfoView: View {
|
||||||
private var selectedSeasonKey: String { "selectedSeason_\(href)" }
|
private var selectedSeasonKey: String { "selectedSeason_\(href)" }
|
||||||
|
|
||||||
@AppStorage("externalPlayer") private var externalPlayer: String = "Default"
|
@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
|
@AppStorage("selectedAppearance") private var selectedAppearance: Appearance = .system
|
||||||
|
|
||||||
@ObservedObject private var jsController = JSController.shared
|
@ObservedObject private var jsController = JSController.shared
|
||||||
|
|
@ -164,11 +164,11 @@ struct MediaInfoView: View {
|
||||||
}
|
}
|
||||||
|
|
||||||
@State private var selectedChapterRange: Range<Int> = {
|
@State private var selectedChapterRange: Range<Int> = {
|
||||||
let size = UserDefaults.standard.integer(forKey: "chapterChunkSize")
|
let size = UserDefaults.standard.integer(forKey: "episodeChunkSize")
|
||||||
let chunk = size == 0 ? 100 : size
|
let chunk = size == 0 ? 50 : size
|
||||||
return 0..<chunk
|
return 0..<chunk
|
||||||
}()
|
}()
|
||||||
@AppStorage("chapterChunkSize") private var chapterChunkSize: Int = 100
|
@AppStorage("chapterChunkSize") private var chapterChunkSize: Int = 50
|
||||||
private var selectedChapterRangeKey: String { "selectedChapterRangeStart_\(href)" }
|
private var selectedChapterRangeKey: String { "selectedChapterRangeStart_\(href)" }
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
|
|
|
||||||
|
|
@ -149,7 +149,7 @@ fileprivate struct SettingsPickerRow<T: Hashable>: View {
|
||||||
}
|
}
|
||||||
|
|
||||||
struct SettingsViewGeneral: 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("refreshModulesOnLaunch") private var refreshModulesOnLaunch: Bool = true
|
||||||
@AppStorage("fetchEpisodeMetadata") private var fetchEpisodeMetadata: Bool = true
|
@AppStorage("fetchEpisodeMetadata") private var fetchEpisodeMetadata: Bool = true
|
||||||
@AppStorage("analyticsEnabled") private var analyticsEnabled: Bool = false
|
@AppStorage("analyticsEnabled") private var analyticsEnabled: Bool = false
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue