mirror of
https://github.com/jonasbark/swiftcontrol.git
synced 2026-11-29 09:11:17 +01:00
Three things a rider asked for, all on the same idea: an offer's button should do the thing, and nothing should be labelled optional that is plainly working. - "Enable overlay" now enables the overlay and *then* opens the Overlay section. A button that only navigates to another switch is the toast problem again, one tap further along. The enable path moved into a shared enableTrainerOverlay(), run by both the section's switch and the step, so the two cannot drift; it persists the flag only when the platform actually put something on screen, so declining Android's draw-over prompt can't leave a setting claiming an invisible overlay. A refusal says why, and the page opens anyway — that is where the permission tile lives. - New optional step on the app card: "Add keyboard and mouse actions", offered when Local is available on this device but switched off (target is This device, per CoreLogic.showLocalControl) and an app is chosen. Local is not a way to reach the app, it is a way to do more to it — keystrokes and clicks the button editor only offers once it is on — and a rider who never turns it on never learns those actions exist. Its button runs the existing enableLocalControl(), permission sheet and all. - The card header drops its OPTIONAL tag once the link is off "off". The link stays optional underneath, which is what keeps a trainer nobody owns from blocking "Ready to ride", but the word is there to reassure someone looking at an empty slot — not to caption connected hardware. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>