fix(macos): onboarding location + layout

This commit is contained in:
Peter Steinberger
2026-01-11 01:35:51 +01:00
parent cbac9fe4ac
commit 21ba04755b
9 changed files with 86 additions and 23 deletions

View File

@@ -222,7 +222,15 @@ actor MacNodeRuntime {
(Self.locationPreciseEnabled() ? .precise : .balanced)
let services = await self.mainActorServices()
let status = await services.locationAuthorizationStatus()
if status != .authorizedAlways {
let hasPermission = switch mode {
case .always:
status == .authorizedAlways
case .whileUsing:
status == .authorizedAlways
case .off:
false
}
if !hasPermission {
return BridgeInvokeResponse(
id: req.id,
ok: false,