mirror of
https://github.com/jonasbark/swiftcontrol.git
synced 2026-11-29 09:11:17 +01:00
The app link read connectedTrainerConnections, which includes Local. Local reports connected the moment it is switched on — it types into whatever window happens to be in front — so it says nothing about whether the trainer app is reachable. With a network method also enabled (the default for MyWhoosh) that painted the link green while the connection the rider actually rides on sat unactivated, hiding the one thing left to do. The link now reads non-local connections whenever any non-local method is enabled, and all of them when Local is all there is — because then Local IS the answer. The summary uses the same list, so the card cannot caption itself "Local" while the network method is down. The rule already existed: InactivityDisconnector draws exactly this distinction, and connectedNonLocalTrainerConnections was already there for it. The home chain simply was not using it. So the getter lives in core.logic beside its siblings rather than as a private method on the page — the next screen that needs it should find it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>