mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-07-27 07:18:11 +00:00
Three notions of "set a target" had drifted apart: LocatorScreen's picker hand-wrote the prefs fields and deferred the save, while the Nearby/Waypoints popups wrote the same fields again and saved immediately, and the live>last- advertised position precedence was duplicated between the engine and the picker. - setTarget() is now the single definition of the active target (fields + re-arm). setTargetNow() wraps it for popups (immediate save + confirm); the Locator screen keeps its deferred save so LEFT/RIGHT cycling doesn't thrash flash. applyTarget() delegates instead of re-writing the fields. - resolvePersonPos() is the single live-share / last-advertised precedence, used by both locatorDistance() and the picker. - Consistent action verb "Set as target" in Nearby and Waypoints menus. No behaviour change for the user beyond the relabel; pure consolidation. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>