Add option "Keep last played video in the queue after restart"

This commit is contained in:
Arkadiusz Fal
2022-09-11 18:34:33 +02:00
parent f7fb8174cd
commit 01601176dd
4 changed files with 10 additions and 3 deletions

View File

@@ -9,6 +9,7 @@ struct HistorySettings: View {
@EnvironmentObject<PlayerModel> private var player
@Default(.saveRecents) private var saveRecents
@Default(.saveLastPlayed) private var saveLastPlayed
@Default(.saveHistory) private var saveHistory
@Default(.showWatchingProgress) private var showWatchingProgress
@Default(.watchedThreshold) private var watchedThreshold
@@ -57,6 +58,7 @@ struct HistorySettings: View {
Toggle("Save history of played videos", isOn: $saveHistory)
Toggle("Show progress of watching on thumbnails", isOn: $showWatchingProgress)
.disabled(!saveHistory)
Toggle("Keep last played video in the queue after restart", isOn: $saveLastPlayed)
}
Section(header: SettingsHeader(text: "Watched")) {