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.

The panel's Updates waiting row opens the list when several wait

Țugui Dragoșdaf595802977
diff --git a/Peel/Views/MenuBarPanel.swift b/Peel/Views/MenuBarPanel.swift
index e62e76d8..e586158c 100644
--- a/Peel/Views/MenuBarPanel.swift
+++ b/Peel/Views/MenuBarPanel.swift
@@ -104,7 +104,9 @@ struct MenuBarPanel: View {
if let first = waiting.first {
Divider().padding(.leading, Self.wordsInset)
Button {
- library.selection = [first.id]
+ // One update opens that app's page, where it is updated. Several open the list, which leads with
+ // them, rather than one app's page with its files selected for removal.
+ library.selection = waiting.count == 1 ? [first.id] : []
open(at: .applications)
} label: {
rowContent(