mirror of
https://github.com/yattee/yattee.git
synced 2026-05-14 03:15:03 +00:00
Rename YouTube Enhancements settings to Integrations
Also swap the icon to puzzlepiece.extension, which better conveys that this section houses third-party service hookups (SponsorBlock, Return YouTube Dislike, DeArrow, short-link resolution) rather than being YouTube-specific. Hide the Resolve Short Links toggle on tvOS — there's no way to tap inline description links or reach a system browser there — and tighten the openInSystemBrowser platform guards so the iOS-only UIApplication path isn't compiled on tvOS.
This commit is contained in:
@@ -98,11 +98,13 @@ enum DescriptionText {
|
||||
/// fails or the destination isn't a URL the app can handle.
|
||||
@MainActor
|
||||
private func openInSystemBrowser(_ url: URL) {
|
||||
#if canImport(UIKit) && !os(watchOS)
|
||||
#if os(iOS)
|
||||
UIApplication.shared.open(url)
|
||||
#elseif canImport(AppKit)
|
||||
#elseif os(macOS)
|
||||
NSWorkspace.shared.open(url)
|
||||
#endif
|
||||
// tvOS has no system browser and no way to tap description links in the
|
||||
// first place — this path is unreachable there.
|
||||
}
|
||||
|
||||
extension View {
|
||||
|
||||
Reference in New Issue
Block a user