Skip to content

armgit / peel

Public Imported from GitHub
0

Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.

Start Duplicates' scroll bar at the top when the list has no headings

Țugui Dragoș12ea235d8519
diff --git a/Peel/Views/Duplicates/DuplicateList.swift b/Peel/Views/Duplicates/DuplicateList.swift
index 5f32688d..6ecd24e4 100644
--- a/Peel/Views/Duplicates/DuplicateList.swift
+++ b/Peel/Views/Duplicates/DuplicateList.swift
@@ -50,7 +50,7 @@ struct DuplicateList: View {
}
}
.accessibilityLabel(Text(Tool.duplicates.title))
- .scrollBarBelowSectionHeaders()
+ .scrollBarBelowSectionHeaders(!folderGroups.isEmpty || !synced.isEmpty)
.columnSearch(text: $searchText, prompt: "Search Duplicates", when: !scan.groups.isEmpty || !scan.folderGroups.isEmpty)
.overlay {
if !(scan.groups.isEmpty && scan.folderGroups.isEmpty), groups.isEmpty, folderGroups.isEmpty {