mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
Hide queue in details on macOS
This commit is contained in:
@@ -35,12 +35,6 @@ struct ContentItem: Identifiable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var contentType: ContentType {
|
var contentType: ContentType {
|
||||||
if !playlist.isNil {
|
video.isNil ? (channel.isNil ? .playlist : .channel) : .video
|
||||||
return .playlist
|
|
||||||
} else if !channel.isNil {
|
|
||||||
return .channel
|
|
||||||
}
|
|
||||||
|
|
||||||
return .video
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -87,9 +87,11 @@ struct VideoDetails: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.onAppear {
|
.onAppear {
|
||||||
|
#if !os(macOS)
|
||||||
if video.isNil {
|
if video.isNil {
|
||||||
currentPage = .queue
|
currentPage = .queue
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
guard video != nil, accounts.app.supportsSubscriptions else {
|
guard video != nil, accounts.app.supportsSubscriptions else {
|
||||||
subscribed = false
|
subscribed = false
|
||||||
|
Reference in New Issue
Block a user