mirror of
https://github.com/yattee/yattee.git
synced 2025-08-05 18:24:02 +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)
|
||||
|
@@ -105,7 +105,7 @@ struct VideoDetails: View {
|
||||
}
|
||||
.padding(.top, inNavigationView && fullScreen ? 10 : 0)
|
||||
.onAppear {
|
||||
if video.isNil {
|
||||
if video.isNil && !sidebarQueue {
|
||||
currentPage = .queue
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user