From 0ad6a3bcb3a695762e97acfe155a87a64aa47c9e Mon Sep 17 00:00:00 2001 From: Matt Van Horn <455140+mvanhorn@users.noreply.github.com> Date: Tue, 7 Apr 2026 21:53:16 -0700 Subject: [PATCH] Fix blank Settings window with menu bar redirect The Settings scene used EmptyView() which left users with a blank window when pressing Cmd+,. Replace with a small view that explains the app lives in the menu bar. Fixes #12 --- leanring-buddy/leanring_buddyApp.swift | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/leanring-buddy/leanring_buddyApp.swift b/leanring-buddy/leanring_buddyApp.swift index b004a896..e9e6748a 100644 --- a/leanring-buddy/leanring_buddyApp.swift +++ b/leanring-buddy/leanring_buddyApp.swift @@ -16,11 +16,22 @@ struct leanring_buddyApp: App { @NSApplicationDelegateAdaptor(CompanionAppDelegate.self) var appDelegate var body: some Scene { - // The app lives entirely in the menu bar panel managed by the AppDelegate. - // This empty Settings scene satisfies SwiftUI's requirement for at least - // one scene but is never shown (LSUIElement=true removes the app menu). + // SwiftUI requires at least one scene. Users can reach this via + // Cmd+, so show a helpful redirect instead of a blank window. Settings { - EmptyView() + VStack(spacing: 12) { + Image(systemName: "menubar.arrow.up.rectangle") + .font(.system(size: 32)) + .foregroundColor(.secondary) + + Text("Clicky lives in your menu bar") + .font(.system(size: 14, weight: .medium)) + + Text("Click the menu bar icon to open controls.") + .font(.system(size: 12)) + .foregroundColor(.secondary) + } + .frame(width: 260, height: 140) } } }