baldav/src-tauri
4aiman d252440204 Fix: single-point track hung showSessionDetail (Delete did nothing)
Diagnosed live over the WebView DevTools protocol: a 0 km track had exactly one
usable point. The map block runs (points.length is truthy), but with a single
coordinate fitBounds is skipped, so the Leaflet map never gets a view and never
fires 'load'. With a saved route active, the overlay code then does
`await whenMapReady(map)`, which waits on that 'load' event forever — hanging the
rest of showSessionDetail, so the Delete/Recalc/Export handlers past it never
bind. No exception, just a silent stall (hence "nothing happens on Delete").

Fix: when there are < 2 coords, setView to the single point so the map loads and
whenMapReady resolves. Verified end-to-end via DevTools: the button now binds and
the 0 km track deletes.

(The prior commit moved the handlers out of the `points.length` guard, which
covers a truly 0-point track; this covers the 1-point-with-route hang.)
2026-08-16 21:06:50 +03:00
..
capabilities GPX export + GPS background recording fixes 2026-05-16 10:49:55 +03:00
gen/android/app/src/main GPS: safe on-device recovery, net-kcal model, poll/watchPosition dedup 2026-07-29 15:35:18 +03:00
icons GPX export + GPS background recording fixes 2026-05-16 10:49:55 +03:00
src Route editor + 1% slope bands + debug-only diagnostics + rotate-map route fix 2026-08-16 17:15:42 +03:00
build.rs Seed products DB + Settings screen + build fixes 2026-05-14 17:35:29 +03:00
Cargo.lock Fix: single-point track hung showSessionDetail (Delete did nothing) 2026-08-16 21:06:50 +03:00
Cargo.toml Fix: single-point track hung showSessionDetail (Delete did nothing) 2026-08-16 21:06:50 +03:00
tauri.conf.json Fix: single-point track hung showSessionDetail (Delete did nothing) 2026-08-16 21:06:50 +03:00