Files
traccar-client-macos/TraccarClient/Interface/TrackingMenu.swift
T
jayanezj 026cd6aa40 feat: persist local configuration and device identity (#3)
Store receiver and identity together in Keychain, with versioned tracking
preferences, explicit authorization retry and stable Settings focus.
Adopt free Apple Development locally and credential-free ad hoc CI.
Run configuration and focus tests through both CI toolchains.

Final decisions: https://github.com/jayanezj/traccar-client-macos/issues/3#issuecomment-6396087703
2026-10-25 10:43:43 +01:00

46 lines
1.2 KiB
Swift

import AppKit
import SwiftUI
struct TrackingMenu: View {
@Environment(\.openSettings) private var openSettings
var body: some View {
Text("Paused")
Text("Tracking is not available in this build.")
Divider()
Button("Start tracking") {}
.disabled(true)
Button("Send location now") {}
.disabled(true)
Button("Send SOS") {}
.disabled(true)
Divider()
Button("Settings…") {
NSApplication.shared.activate()
openSettings()
}
.keyboardShortcut(",")
Button("About Traccar Client for macOS") {
NSApplication.shared.activate()
NSApplication.shared.orderFrontStandardAboutPanel(options: [
.applicationName: "Traccar Client for macOS",
.credits: NSAttributedString(
string: "An independent, unofficial Traccar client.\nLicensed under Apache License 2.0."
),
])
}
Divider()
Button("Quit Traccar Client macOS") {
NSApplication.shared.terminate(nil)
}
.keyboardShortcut("q")
}
}