Hide queue in details on macOS

This commit is contained in:
Arkadiusz Fal 2021-10-23 14:24:00 +02:00
parent cf0975d8bf
commit e64a520d5e
2 changed files with 6 additions and 10 deletions

View File

@ -35,12 +35,6 @@ struct ContentItem: Identifiable {
}
var contentType: ContentType {
if !playlist.isNil {
return .playlist
} else if !channel.isNil {
return .channel
}
return .video
video.isNil ? (channel.isNil ? .playlist : .channel) : .video
}
}

View File

@ -87,9 +87,11 @@ struct VideoDetails: View {
}
}
.onAppear {
#if !os(macOS)
if video.isNil {
currentPage = .queue
}
#endif
guard video != nil, accounts.app.supportsSubscriptions else {
subscribed = false