mirror of
https://github.com/yattee/yattee.git
synced 2025-08-05 02:04:07 +00:00
Performance improvements
This commit is contained in:
@@ -20,7 +20,6 @@ struct VideoContextMenuView: View {
|
||||
|
||||
@FetchRequest private var watchRequest: FetchedResults<Watch>
|
||||
|
||||
@Default(.saveHistory) private var saveHistory
|
||||
@Default(.showPlayNowInBackendContextMenu) private var showPlayNowInBackendContextMenu
|
||||
|
||||
private var backgroundContext = PersistenceController.shared.container.newBackgroundContext()
|
||||
@@ -44,7 +43,7 @@ struct VideoContextMenuView: View {
|
||||
removeAllFromQueueButton()
|
||||
}
|
||||
if !video.localStreamIsDirectory {
|
||||
if saveHistory {
|
||||
if Defaults[.saveHistory] {
|
||||
Section {
|
||||
if let watchedAtString {
|
||||
Text(watchedAtString)
|
||||
@@ -72,7 +71,7 @@ struct VideoContextMenuView: View {
|
||||
#endif
|
||||
}
|
||||
|
||||
if showPlayNowInBackendContextMenu {
|
||||
if Defaults[.showPlayNowInBackendContextMenu] {
|
||||
Section {
|
||||
ForEach(PlayerBackendType.allCases, id: \.self) { backend in
|
||||
playNowInBackendButton(backend)
|
||||
|
Reference in New Issue
Block a user