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 <noreply@anthropic.com>
This commit is contained in:
tigerenwork 2026-06-29 01:17:07 +08:00
parent b207918fc6
commit 7590389a04
2 changed files with 8 additions and 1 deletions

View File

@ -83,6 +83,9 @@ struct BugListPopover: View {
SettingsLink { SettingsLink {
Label("Settings", systemImage: "gear") Label("Settings", systemImage: "gear")
} }
Button(action: { NSApp.terminate(nil) }) {
Label("Quit", systemImage: "power")
}
} }
.padding(.horizontal) .padding(.horizontal)
.padding(.vertical, 6) .padding(.vertical, 6)

View File

@ -47,7 +47,11 @@ struct SettingsView: View {
Text("1 minute").tag(60) Text("1 minute").tag(60)
Text("5 minutes").tag(300) Text("5 minutes").tag(300)
Text("10 minutes").tag(600) 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)
} }
} }