From 7590389a0422094983e66c0712f902b7f47eac98 Mon Sep 17 00:00:00 2001 From: tigerenwork Date: Mon, 29 Jun 2026 01:17:07 +0800 Subject: [PATCH] feat: add Quit button, extended polling intervals - Popover footer now has a Quit button (power icon) to terminate the app - Polling interval picker now includes 1h, 2h, 4h, and 1 day options Co-Authored-By: Claude --- Sources/Views/MenuBar/BugListPopover.swift | 3 +++ Sources/Views/Settings/SettingsView.swift | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Sources/Views/MenuBar/BugListPopover.swift b/Sources/Views/MenuBar/BugListPopover.swift index 18215d6..653a1d5 100644 --- a/Sources/Views/MenuBar/BugListPopover.swift +++ b/Sources/Views/MenuBar/BugListPopover.swift @@ -83,6 +83,9 @@ struct BugListPopover: View { SettingsLink { Label("Settings", systemImage: "gear") } + Button(action: { NSApp.terminate(nil) }) { + Label("Quit", systemImage: "power") + } } .padding(.horizontal) .padding(.vertical, 6) diff --git a/Sources/Views/Settings/SettingsView.swift b/Sources/Views/Settings/SettingsView.swift index 1384d4c..874d9b4 100644 --- a/Sources/Views/Settings/SettingsView.swift +++ b/Sources/Views/Settings/SettingsView.swift @@ -47,7 +47,11 @@ struct SettingsView: View { Text("1 minute").tag(60) Text("5 minutes").tag(300) Text("10 minutes").tag(600) - Text("30 minutes").tag(1800) + Text("30 minutes").tag(1_800) + Text("1 hour").tag(3_600) + Text("2 hours").tag(7_200) + Text("4 hours").tag(14_400) + Text("1 day").tag(86_400) } }