mirror of
https://github.com/yattee/yattee.git
synced 2024-12-24 06:23:42 +00:00
Remove comments placement setting
This commit is contained in:
parent
b7f1535942
commit
4ad8f139ff
@ -7,10 +7,6 @@ struct PlayerSettings: View {
|
|||||||
@Default(.quality) private var quality
|
@Default(.quality) private var quality
|
||||||
@Default(.commentsInstanceID) private var commentsInstanceID
|
@Default(.commentsInstanceID) private var commentsInstanceID
|
||||||
|
|
||||||
#if !os(tvOS)
|
|
||||||
@Default(.commentsPlacement) private var commentsPlacement
|
|
||||||
#endif
|
|
||||||
|
|
||||||
@Default(.playerSidebar) private var playerSidebar
|
@Default(.playerSidebar) private var playerSidebar
|
||||||
@Default(.showHistoryInPlayer) private var showHistory
|
@Default(.showHistoryInPlayer) private var showHistory
|
||||||
@Default(.showKeywords) private var showKeywords
|
@Default(.showKeywords) private var showKeywords
|
||||||
@ -68,10 +64,6 @@ struct PlayerSettings: View {
|
|||||||
|
|
||||||
Section(header: SettingsHeader(text: "Comments")) {
|
Section(header: SettingsHeader(text: "Comments")) {
|
||||||
commentsInstancePicker
|
commentsInstancePicker
|
||||||
#if !os(tvOS)
|
|
||||||
commentsPlacementPicker
|
|
||||||
.disabled(!CommentsModel.enabled)
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Section(header: SettingsHeader(text: "Interface")) {
|
Section(header: SettingsHeader(text: "Interface")) {
|
||||||
@ -161,19 +153,6 @@ struct PlayerSettings: View {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !os(tvOS)
|
|
||||||
private var commentsPlacementPicker: some View {
|
|
||||||
Picker("Placement", selection: $commentsPlacement) {
|
|
||||||
Text("Below video description").tag(CommentsPlacement.info)
|
|
||||||
Text("Separate tab").tag(CommentsPlacement.separate)
|
|
||||||
}
|
|
||||||
.labelsHidden()
|
|
||||||
#if os(iOS)
|
|
||||||
.pickerStyle(.automatic)
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
private var sidebarPicker: some View {
|
private var sidebarPicker: some View {
|
||||||
Picker("Sidebar", selection: $playerSidebar) {
|
Picker("Sidebar", selection: $playerSidebar) {
|
||||||
#if os(macOS)
|
#if os(macOS)
|
||||||
|
Loading…
Reference in New Issue
Block a user