From 6e91069ff37a0acb2fb0c671b6ba7f4cf5a9900f Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Wed, 22 Apr 2026 22:06:03 +0200 Subject: [PATCH] Move Add Source button to toolbar in macOS Sources settings --- Yattee/Views/Settings/SourcesListView.swift | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/Yattee/Views/Settings/SourcesListView.swift b/Yattee/Views/Settings/SourcesListView.swift index 21d8232d..355ae0fe 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(iOS) + #if os(iOS) || os(macOS) .toolbar { ToolbarItem(placement: .primaryAction) { Button { @@ -156,20 +156,6 @@ 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 }