From 5f882b81fbc5b898bacfeacfedf3422550ac28fd Mon Sep 17 00:00:00 2001 From: Fuwn Date: Wed, 12 Feb 2025 04:12:48 -0800 Subject: style(HoloBarApp): Tidy buttons --- HoloBar/HoloBarApp.swift | 10 ++++------ 1 file 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() -- cgit v1.2.3