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.

Keep Found's "hours ago" true while the menu bar panel shows

Țugui Dragoș95f9cfe587c3
diff --git a/Peel/Views/MenuBarFound.swift b/Peel/Views/MenuBarFound.swift
index f501a1ca..21f63c84 100644
--- a/Peel/Views/MenuBarFound.swift
+++ b/Peel/Views/MenuBarFound.swift
@@ -57,7 +57,14 @@ struct MenuBarFound: View {
}
}
+ /// Drawn again each minute while the panel shows, so when each tool looked, as macOS words it, stays true.
private func row(_ line: Line) -> some View {
+ TimelineView(.everyMinute) { _ in
+ rowContent(line)
+ }
+ }
+
+ private func rowContent(_ line: Line) -> some View {
let isPointedAt = pointingAt == line.tool
return Button { open(line.tool) } label: {
HStack(spacing: MenuBarPanel.iconSpacing) {