Add setting for saving recents (fixes #14)

This commit is contained in:
Arkadiusz Fal
2021-12-01 12:22:19 +01:00
parent e61d1dfe2e
commit 06f7391ad9
5 changed files with 19 additions and 2 deletions

View File

@@ -4,6 +4,7 @@ import SwiftUI
struct BrowsingSettings: View {
@Default(.channelOnThumbnail) private var channelOnThumbnail
@Default(.timeOnThumbnail) private var timeOnThumbnail
@Default(.saveRecents) private var saveRecents
@Default(.saveHistory) private var saveHistory
@Default(.visibleSections) private var visibleSections
@@ -12,6 +13,7 @@ struct BrowsingSettings: View {
Section(header: SettingsHeader(text: "Browsing")) {
Toggle("Show channel name on thumbnail", isOn: $channelOnThumbnail)
Toggle("Show video length on thumbnail", isOn: $timeOnThumbnail)
Toggle("Save recent queries and channels", isOn: $saveRecents)
Toggle("Save history of played videos", isOn: $saveHistory)
}
Section(header: SettingsHeader(text: "Sections")) {