summaryrefslogtreecommitdiff
path: root/Hutch/App/HutchApp.swift
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-04-12 00:55:42 -0500
committerChristian Cleberg <[email protected]>2026-04-12 00:55:42 -0500
commit9050405b4f33b2b9b70458fcf3e43b80c940eef7 (patch)
tree983c3a07a560258059cfe421beb3ffcf3c18baf4 /Hutch/App/HutchApp.swift
parent5f6d545eb3455a9e4da5a3cb4460811e3a48d939 (diff)
downloadhutch-2.15.0.tar.gz
hutch-2.15.0.tar.bz2
hutch-2.15.0.zip
add shortcuts widgets and power-user workflowsv2.15.0
Diffstat (limited to 'Hutch/App/HutchApp.swift')
-rw-r--r--Hutch/App/HutchApp.swift15
1 files changed, 15 insertions, 0 deletions
diff --git a/Hutch/App/HutchApp.swift b/Hutch/App/HutchApp.swift
index fda0f06..e65833c 100644
--- a/Hutch/App/HutchApp.swift
+++ b/Hutch/App/HutchApp.swift
@@ -15,6 +15,21 @@ struct HutchApp: App {
appState.pendingDeepLink = link
}
}
+ .onChange(of: HutchIntentNavigator.shared.pendingDestination) { _, destination in
+ guard let destination else { return }
+ HutchIntentNavigator.shared.pendingDestination = nil
+ let link: DeepLink
+ switch destination {
+ case .home: link = .home
+ case .inbox: link = .home
+ case .builds: link = .buildsTab
+ case .repositories: link = .repositoriesTab
+ case .trackers: link = .trackersTab
+ case .systemStatus: link = .systemStatus
+ case .lookup: link = .lookup
+ }
+ appState.pendingDeepLink = link
+ }
}
}
}