mvp-ai/skill-base / github.com /0marm0 /coord-harness /apps /cockpit /Sources /CockpitLauncherAppDelegate.swift
mvp-ai's picture
download
raw
846 Bytes
import AppKit
final class CockpitLauncherAppDelegate: NSObject, NSApplicationDelegate {
private lazy var telemetryStore: SystemTelemetryStore = MainActor.assumeIsolated {
SystemTelemetryStore()
}
private lazy var cockpitWindow = CockpitWindowController(telemetryStore: telemetryStore)
func applicationDidFinishLaunching(_ notification: Notification) {
NSApp.setActivationPolicy(.regular)
openCockpitWindow()
}
func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
true
}
func applicationShouldHandleReopen(_ sender: NSApplication, hasVisibleWindows flag: Bool) -> Bool {
if !flag {
openCockpitWindow()
}
return true
}
private func openCockpitWindow() {
cockpitWindow.showWindow(nil)
}
}

Xet Storage Details

Size:
846 Bytes
·
Xet hash:
9d2d399ad7b199e1eac375bd08785380c5e7a273f6b87efe09e4f89593b2afc9

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.