diff options
| author | Fuwn <[email protected]> | 2025-02-12 04:12:48 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-02-12 04:12:48 -0800 |
| commit | 5f882b81fbc5b898bacfeacfedf3422550ac28fd (patch) | |
| tree | b73403a236824daa867a88cbdfb24c98c14f9c81 /HoloBar | |
| parent | feat: Include talent icons (diff) | |
| download | holobar-5f882b81fbc5b898bacfeacfedf3422550ac28fd.tar.xz holobar-5f882b81fbc5b898bacfeacfedf3422550ac28fd.zip | |
style(HoloBarApp): Tidy buttons
Diffstat (limited to 'HoloBar')
| -rw-r--r-- | HoloBar/HoloBarApp.swift | 10 |
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() |