mirror of
https://github.com/yattee/yattee.git
synced 2024-12-13 22:00:31 +05:30
Hide queue in details on macOS
This commit is contained in:
parent
cf0975d8bf
commit
e64a520d5e
@ -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
|
||||
}
|
||||
}
|
||||
|
@ -87,9 +87,11 @@ struct VideoDetails: View {
|
||||
}
|
||||
}
|
||||
.onAppear {
|
||||
if video.isNil {
|
||||
currentPage = .queue
|
||||
}
|
||||
#if !os(macOS)
|
||||
if video.isNil {
|
||||
currentPage = .queue
|
||||
}
|
||||
#endif
|
||||
|
||||
guard video != nil, accounts.app.supportsSubscriptions else {
|
||||
subscribed = false
|
||||
|
Loading…
Reference in New Issue
Block a user