aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-02-12 04:12:48 -0800
committerFuwn <[email protected]>2025-02-12 04:12:48 -0800
commit5f882b81fbc5b898bacfeacfedf3422550ac28fd (patch)
treeb73403a236824daa867a88cbdfb24c98c14f9c81
parentfeat: Include talent icons (diff)
downloadholobar-5f882b81fbc5b898bacfeacfedf3422550ac28fd.tar.xz
holobar-5f882b81fbc5b898bacfeacfedf3422550ac28fd.zip
style(HoloBarApp): Tidy buttons
-rw-r--r--HoloBar/HoloBarApp.swift10
1 files changed, 4 insertions, 6 deletions
diff --git a/HoloBar/HoloBarApp.swift b/HoloBar/HoloBarApp.swift
index eb28f7f..e8d678a 100644
--- a/HoloBar/HoloBarApp.swift
+++ b/HoloBar/HoloBarApp.swift
@@ -26,17 +26,15 @@ struct HoloBarApp: App {
}
Divider()
+
#if DEBUG
Button("Simulate Day Change") {
NotificationCenter.default.post(name: .NSCalendarDayChanged, object: nil)
}
#endif
- Button("Refresh") {
- refreshCharacters()
- }
- Button("Quit") {
- NSApplication.shared.terminate(nil)
- }
+
+ Button("Refresh", action: refreshCharacters)
+ Button("Quit", action: { NSApplication.shared.terminate(nil) })
}
.onReceive(NotificationCenter.default.publisher(for: .NSCalendarDayChanged)) { _ in
refreshCharacters()