Improve queue details loading

This commit is contained in:
Arkadiusz Fal
2022-06-26 13:12:32 +02:00
parent 0f48a14e96
commit fe94d35af0
5 changed files with 17 additions and 12 deletions

View File

@@ -39,6 +39,10 @@ struct PlayerQueueItem: Hashable, Identifiable, Defaults.Serializable {
return duration - seconds <= 10
}
var hasDetailsLoaded: Bool {
!video.isNil
}
func hash(into hasher: inout Hasher) {
hasher.combine(id)
}