mirror of
https://github.com/yattee/yattee.git
synced 2025-10-14 11:28:13 +00:00
Add setting for saving videos history
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import Defaults
|
||||
import Foundation
|
||||
import SwiftUI
|
||||
|
||||
@@ -7,6 +8,8 @@ struct PlayerQueueView: View {
|
||||
|
||||
@EnvironmentObject<PlayerModel> private var player
|
||||
|
||||
@Default(.saveHistory) private var saveHistory
|
||||
|
||||
var body: some View {
|
||||
List {
|
||||
Group {
|
||||
@@ -14,7 +17,9 @@ struct PlayerQueueView: View {
|
||||
if sidebarQueue {
|
||||
related
|
||||
}
|
||||
playedPreviously
|
||||
if saveHistory {
|
||||
playedPreviously
|
||||
}
|
||||
}
|
||||
#if !os(iOS)
|
||||
.padding(.vertical, 5)
|
||||
|
Reference in New Issue
Block a user