Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion herdi-mac/Sources/HerdiMacApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,17 @@ struct HerdiApp: App {
@NSApplicationDelegateAdaptor(HerdiAppDelegate.self) var appDelegate

var body: some Scene {
// No visible window — the panel IS the UI
// No visible window — the panel IS the UI. macOS 26 opens a lone Settings scene at
// launch, which showed an empty "Herdi Settings" window, so it is suppressed. macOS 14
// cannot suppress it, so it gets no scene. The panel and the status item are AppKit.
// An SDK older than macOS 15 has no defaultLaunchBehavior and keeps the plain scene.
#if compiler(>=6.0)
if #available(macOS 15.0, *) {
Settings { EmptyView() }.defaultLaunchBehavior(.suppressed)
}
#else
Settings { EmptyView() }
#endif
}
}

Expand Down
Loading