diff --git a/Tusker/Screens/Customize Timelines/PinnedTimelinesView.swift b/Tusker/Screens/Customize Timelines/PinnedTimelinesView.swift index ae176dd4..cd188ba5 100644 --- a/Tusker/Screens/Customize Timelines/PinnedTimelinesView.swift +++ b/Tusker/Screens/Customize Timelines/PinnedTimelinesView.swift @@ -49,9 +49,9 @@ struct PinnedTimelinesView: View { .onMove { indices, newOffset in pinnedTimelines.move(fromOffsets: indices, toOffset: newOffset) } - .onDelete { indices in + .onDelete(perform: pinnedTimelines.count == 1 ? nil : { indices in pinnedTimelines.remove(atOffsets: indices) - } + }) Menu { ForEach([Timeline.home, .public(local: true), .public(local: false)], id: \.id) { timeline in