Settings Feature Enhancement
Nucleic-Session: 89BFAB13-D559-43FC-BE28-0B2639BECF0F Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -554,6 +554,13 @@ final class RemoteStore: ObservableObject {
|
|||||||
self?.tailnetStatus = status
|
self?.tailnetStatus = status
|
||||||
self?.tailnetLoginURL = loginURL
|
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
|
return cb
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user