diff --git a/Sources/AppDelegate.swift b/Sources/AppDelegate.swift index 99c9e6a..bf03572 100644 --- a/Sources/AppDelegate.swift +++ b/Sources/AppDelegate.swift @@ -64,8 +64,6 @@ final class AppDelegate: NSObject, NSApplicationDelegate { } else { popover.show(relativeTo: button.bounds, of: button, preferredEdge: .minY) popover.contentViewController?.view.window?.makeKey() - // Refresh on open (PollerService deduplicates if already fetching) - Task { await PollerService.shared.fetchNow() } } } diff --git a/Sources/Views/MenuBar/BugListPopover.swift b/Sources/Views/MenuBar/BugListPopover.swift index 0503072..967aa04 100644 --- a/Sources/Views/MenuBar/BugListPopover.swift +++ b/Sources/Views/MenuBar/BugListPopover.swift @@ -31,9 +31,17 @@ struct BugListPopover: View { Image(systemName: "arrow.triangle.2.circlepath") .font(.caption2) .foregroundStyle(.secondary) - Text(bugStore.lastUpdated.map(formatted) ?? "Never") - .font(.caption) - .foregroundStyle(.secondary) + if let lastUpdated = bugStore.lastUpdated { + TimelineView(.periodic(from: lastUpdated, by: 30)) { _ in + Text(formatted(lastUpdated)) + .font(.caption) + .foregroundStyle(.secondary) + } + } else { + Text("Never") + .font(.caption) + .foregroundStyle(.secondary) + } } Button("Mark all seen") { bugStore.markAllSeen()