Sessions Integration Feature

Nucleic-Session: FC94353F-9F0D-4BCC-AD7C-0FB14E38C2E5
Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
2026-07-05 01:56:29 -07:00
co-authored by Nucleic
parent 9a59f0cdff
commit ee47a61f49
@@ -79,27 +79,6 @@ struct SessionsView: View {
// A notification tap while this tab is already up. // A notification tap while this tab is already up.
.onChange(of: store.pendingRoute) { consumeRoute() } .onChange(of: store.pendingRoute) { consumeRoute() }
.toolbar { .toolbar {
// Host switcher (mesh P3): pick which paired Mac to view. Hidden with a single Mac.
ToolbarItem(placement: .topBarLeading) {
if store.hostChoices.count > 1 {
Menu {
ForEach(store.hostChoices) { choice in
Button {
store.switchHost(to: choice.id)
} label: {
Label(choice.name,
systemImage: choice.isActive ? "checkmark" : "desktopcomputer")
}
}
} label: {
HStack(spacing: 4) {
Image(systemName: "desktopcomputer")
Text(store.hostName).lineLimit(1)
Image(systemName: "chevron.down").font(.caption2)
}
}
}
}
ToolbarItem(placement: .topBarTrailing) { ToolbarItem(placement: .topBarTrailing) {
Button { Button {
showArchived.toggle() showArchived.toggle()