Move Add Source button to toolbar in macOS Sources settings

This commit is contained in:
Arkadiusz Fal
2026-04-22 22:06:03 +02:00
parent 397fc46629
commit 6e91069ff3

View File

@@ -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
}