From 3afd0bdf7887d0b420748ff34c78ad2b09bd9e9a Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Tue, 21 Apr 2026 06:27:31 +0200 Subject: [PATCH] Add inline Add Source button to Sources settings on macOS --- Yattee/Views/Settings/SourcesListView.swift | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Yattee/Views/Settings/SourcesListView.swift b/Yattee/Views/Settings/SourcesListView.swift index 2e5a3e1b..21d8232d 100644 --- a/Yattee/Views/Settings/SourcesListView.swift +++ b/Yattee/Views/Settings/SourcesListView.swift @@ -74,7 +74,7 @@ struct SourcesListView: View { #if os(iOS) .navigationBarTitleDisplayMode(.inline) #endif - #if !os(tvOS) + #if os(iOS) .toolbar { ToolbarItem(placement: .primaryAction) { Button { @@ -156,6 +156,20 @@ struct SourcesListView: View { .overlay( ScrollView { LazyVStack(spacing: 0) { + #if os(macOS) + HStack { + Spacer() + Button { + showingAddSheet = true + } label: { + Label(String(localized: "sources.addSource"), systemImage: "plus") + } + .help(String(localized: "sources.addSource")) + .accessibilityIdentifier("sources.addButton") + } + .padding(.horizontal, 16) + .padding(.vertical, 8) + #endif remoteServersSection fileSourcesSection }