Skip to content

Kml tracks race condition#96

Closed
apps4av wants to merge 1 commit intomasterfrom
cursor/kml-tracks-race-condition-4a37
Closed

Kml tracks race condition#96
apps4av wants to merge 1 commit intomasterfrom
cursor/kml-tracks-race-condition-4a37

Conversation

@apps4av
Copy link
Owner

@apps4av apps4av commented Jan 30, 2026

Fixes KML tracks file being empty by correcting the logic for resetting and saving tracks when the layer opacity slider changes.

The previous implementation would reset Storage().tracks (clearing recorded points) on any non-zero slider change, including when dragging the slider towards zero. This caused the tracks to be cleared before saveKml() could execute, resulting in an empty KML file. The fix ensures tracks are only reset when the layer is turned on (0 -> >0 opacity) and saved when the layer is turned off (>0 -> 0 opacity).


Open in Cursor Open in Web

Co-authored-by: governer <governer@gmail.com>
@cursor
Copy link

cursor bot commented Jan 30, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@apps4av apps4av closed this Jan 30, 2026
@apps4av apps4av deleted the cursor/kml-tracks-race-condition-4a37 branch January 30, 2026 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants