Fix build issues

This commit is contained in:
Arkadiusz Fal 2024-05-23 11:53:41 +02:00
parent 934bd65752
commit 34cb7860b3

View File

@ -78,10 +78,11 @@ struct AdvancedSettings: View {
Image(systemName: "link") Image(systemName: "link")
.accessibilityAddTraits([.isButton, .isLink]) .accessibilityAddTraits([.isButton, .isLink])
.font(.footnote) .font(.footnote)
#if os(iOS)
.onTapGesture { .onTapGesture {
UIApplication.shared.open(URL(string: "https://mpv.io/manual/stable/#options-cache-pause-initial")!) UIApplication.shared.open(URL(string: "https://mpv.io/manual/stable/#options-cache-pause-initial")!)
} }
#if os(macOS) #elseif os(macOS)
.onHover(perform: onHover(_:)) .onHover(perform: onHover(_:))
#endif #endif
#endif #endif
@ -94,10 +95,11 @@ struct AdvancedSettings: View {
Image(systemName: "link") Image(systemName: "link")
.accessibilityAddTraits([.isButton, .isLink]) .accessibilityAddTraits([.isButton, .isLink])
.font(.footnote) .font(.footnote)
#if os(iOS)
.onTapGesture { .onTapGesture {
UIApplication.shared.open(URL(string: "https://mpv.io/manual/stable/#options-cache-secs")!) UIApplication.shared.open(URL(string: "https://mpv.io/manual/stable/#options-cache-secs")!)
} }
#if os(macOS) #elseif os(macOS)
.onHover(perform: onHover(_:)) .onHover(perform: onHover(_:))
#endif #endif
@ -116,10 +118,11 @@ struct AdvancedSettings: View {
Image(systemName: "link") Image(systemName: "link")
.accessibilityAddTraits([.isButton, .isLink]) .accessibilityAddTraits([.isButton, .isLink])
.font(.footnote) .font(.footnote)
#if os(iOS)
.onTapGesture { .onTapGesture {
UIApplication.shared.open(URL(string: "https://mpv.io/manual/stable/#options-cache-pause-wait")!) UIApplication.shared.open(URL(string: "https://mpv.io/manual/stable/#options-cache-pause-wait")!)
} }
#if os(macOS) #elseif os(macOS)
.onHover(perform: onHover(_:)) .onHover(perform: onHover(_:))
#endif #endif
#endif #endif
@ -139,10 +142,11 @@ struct AdvancedSettings: View {
Image(systemName: "link") Image(systemName: "link")
.accessibilityAddTraits([.isButton, .isLink]) .accessibilityAddTraits([.isButton, .isLink])
.font(.footnote) .font(.footnote)
#if os(iOS)
.onTapGesture { .onTapGesture {
UIApplication.shared.open(URL(string: "https://mpv.io/manual/stable/#options-deinterlace")!) UIApplication.shared.open(URL(string: "https://mpv.io/manual/stable/#options-deinterlace")!)
} }
#if os(macOS) #elseif os(macOS)
.onHover(perform: onHover(_:)) .onHover(perform: onHover(_:))
#endif #endif
#endif #endif
@ -156,11 +160,12 @@ struct AdvancedSettings: View {
Image(systemName: "link") Image(systemName: "link")
.accessibilityAddTraits([.isButton, .isLink]) .accessibilityAddTraits([.isButton, .isLink])
.font(.footnote) .font(.footnote)
#if os(iOS)
.onTapGesture { .onTapGesture {
UIApplication.shared.open(URL(string: "https://mpv.io/manual/stable/#options-hwdec")!) UIApplication.shared.open(URL(string: "https://mpv.io/manual/stable/#options-hwdec")!)
} }
#if os(macOS) #elseif os(macOS)
.onHover( /* perform: onHover(_:) */ ) .onHover(perform: onHover(_:))
#endif #endif
#endif #endif
@ -169,7 +174,9 @@ struct AdvancedSettings: View {
Text($0) Text($0)
} }
} }
#if !os(tvOS)
.pickerStyle(MenuPickerStyle()) .pickerStyle(MenuPickerStyle())
#endif
} }
if mpvEnableLogging { if mpvEnableLogging {
@ -183,11 +190,12 @@ struct AdvancedSettings: View {
Image(systemName: "link") Image(systemName: "link")
.accessibilityAddTraits([.isButton, .isLink]) .accessibilityAddTraits([.isButton, .isLink])
.font(.footnote) .font(.footnote)
#if os(iOS)
.onTapGesture { .onTapGesture {
UIApplication.shared.open(URL(string: "https://mpv.io/manual/stable/#options-demuxer-lavf-probe-info")!) UIApplication.shared.open(URL(string: "https://mpv.io/manual/stable/#options-demuxer-lavf-probe-info")!)
} }
#if os(macOS) #elseif os(macOS)
.onHover( /* perform: onHover(_:) */ ) .onHover(perform: onHover(_:))
#endif #endif
#endif #endif
@ -196,7 +204,9 @@ struct AdvancedSettings: View {
Text($0) Text($0)
} }
} }
#if !os(tvOS)
.pickerStyle(MenuPickerStyle()) .pickerStyle(MenuPickerStyle())
#endif
} }
if mpvEnableLogging { if mpvEnableLogging {