Settings Feature Enhancement

Nucleic-Session: 89BFAB13-D559-43FC-BE28-0B2639BECF0F
Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
2026-07-05 22:03:56 -07:00
co-authored by Nucleic
parent 831c30bcea
commit 76f33d0134
@@ -554,6 +554,13 @@ final class RemoteStore: ObservableObject {
self?.tailnetStatus = status
self?.tailnetLoginURL = loginURL
}
cb.pairingCodeReceived = { [weak self] qr in
guard let self else { return }
// Only apply while a request is outstanding — ignore a late reply after the user
// dismissed the sheet (we already told the host to cancel).
guard case .requesting = self.addDevice else { return }
self.addDevice = qr.map(AddDeviceState.ready) ?? .unavailable
}
return cb
}